client.lua
Kod:
function loadFile(path)
local file = fileOpen(path)
if not file then
return false
end
local count = fileGetSize(file)
local data = fileRead(file, count)
fileClose(file)
return data
end
function modelBaslat()
local sifre = "SIFRA BURAYA"
local txd = loadFile("model.txdc")
txd = decodeString("tea",txd,{key = sifre})
txd = engineLoadTXD(txd)
if txd then engineImportTXD(txd, aracmodelid) end
local dff = loadFile("model.dffc")
dff = decodeString("tea",dff,{key = sifre})
dff = engineLoadDFF(dff)
if dff then engineReplaceModel(dff, aracmodelid) end
end
addEventHandler("onClientResourceStart",resourceRoot,modelBaslat)