Hello MTA Community,
I've been preparing all for get the Liberty City Map into a MTA Server. But I've tried to replace a simple model but I get a engineLoadTXD error with a file that I extracted from the gta3.img.
Error loading '@engineLoadTXD'['car/pjs.txd']
And here the test code.
function replaceModel()
col = engineLoadCOL("car/industNW.col", 3781)
engineReplaceCOL( col, 3781 )
pjs = engineLoadTXD("car/pjs.txd", 3781)
engineImportTXD( pjs, 3781 )
dff = engineLoadDFF("car/ind_land101.dff", 3781)
engineReplaceModel( dff, 3781 )
end
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel)
Thanks for your help.