Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2021-10-10, 20:42


Karolowatyy







Wiek: 26
Na forum: 3427 dni
Posty: 117
Nick w MP: Ripley

Piwa: 826

Respekt: 90

Ostrzeżeń: 20%
Siemano, po wej?ciu i zalogowaniu si? na serwer wywala nast?puj?ce errory:

https://cdn.discordapp.com/attachments/662336840556085248/896379349232648262/unknown.png


local dir = string.format("models/%s/%s", v.type, v.file)
        if fileExists(dir..".itxd") then
            local fileString = self:uncompileFile(dir, "itxd")
            local txd = engineLoadTXD(fileString)
            if txd then
                engineImportTXD(txd, v.model)
            else
                outputDebugString(string.format("[TR_models] Failed to load TXD for model %s!", v.file), 0, 255, 0, 0)
            end
        end
        if fileExists(dir..".idff") then
            local fileString = self:uncompileFile(dir, "idff")
            local dff = engineLoadDFF(fileString)
            if dff then
                engineReplaceModel(dff, v.model, v.alpha)
            else
                outputDebugString(string.format("[TR_models] Failed to load DFF for model %s!", v.file), 0, 255, 0, 0)
            end
        end
        if fileExists(dir..".icol") then
            local fileString = self:uncompileFile(dir, "icol")
            local col = engineLoadCOL(fileString)
            if col then
                engineReplaceCOL(col, v.model)
            else
                outputDebugString(string.format("[TR_models] Failed to load COL for model %s!", v.file), 0, 255, 0, 0)
            end
        end

function ModelLoader:uncompileFile(dir, format)
    local file = fileOpen(dir.."."..format)
    local fileString = fileRead(file, fileGetSize(file))
    local uncompiledString = self:teaDecodeBinary(fileString, EncriptionKey)
    fileClose(file)
    return uncompiledString
end

function ModelLoader:teaDecodeBinary(data, key)
    return decodeString("tea", data, {key = key})
end

-- PLIK SETTINGS:

replaceList = {
    -- Vehicles
    { -- Santa sleights
        file = "shamal",
        type = "vehicles",
        model = 512,
    },...


Pomo?e kto??

Podpis
Randka?
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Umboksal12333
Tagi: insidemta :: modele
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » InsideMTA - modele Odpowiedz do tematu

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku