UPDATE
Hello, I solved it with that code If you have to that problem you can use that code. You need open a new lua file (example.lua) and rename with your object files (Object.col, Object.dff, Object.txd and your model ID) your problem will solve like this ; https://imgur.com/a/c2KZf60 Thanks guys... Have a nice day
function onClientResourceStartReplaceModels()
local modelsToReplace = {
{ -- replace object
colFile = "Object.col",
txdFile = "Object.txd",
dffFile = "Object.dff",
modelID = 5427,
alphaTransparency = true,
filteringEnabled = true,
},
}
for assetID = 1, #modelsToReplace do
local modelData = modelsToReplace[assetID]
local modelCol = modelData.colFile
local modelTxd = modelData.txdFile
local modelDff = modelData.dffFile
local modelID = modelData.modelID
if modelCol then
local colData = engineLoadCOL(modelCol)
if colData then
engineReplaceCOL(colData, modelID)
end
end
if modelTxd then
local filteringEnabled = modelData.filteringEnabled
local txdData = engineLoadTXD(modelTxd, filteringEnabled)
if txdData then
engineImportTXD(txdData, modelID)
end
end
if modelDff then
local dffData = engineLoadDFF(modelDff)
if dffData then
local alphaTransparency = modelData.alphaTransparency
engineReplaceModel(dffData, modelID, alphaTransparency)
end
end
end
end
addEventHandler("onClientResourceStart", resourceRoot, onClientResourceStartReplaceModels)