Jump to content

Textures Replacing Not Loading


samt2497

Recommended Posts

i maked a code for replace some models and they textures but car shows without textures (WHITE)

I cant make to load TXD i dont know why, i think my code is great but in game textures dont show

function ReplaceTexture ( )
txd = engineLoadTXD( "modelos/copcarla.txd" )
engineImportTXD( txd, 596 )
txd = engineLoadTXD( "modelos/patriot.txd" )
engineImportTXD( txd, 470 )
end
 
addEventHandler("onClientResourceStart", getRootElement(), ReplaceTexture)
 
function ReplaceObject ( )
 
dff = engineLoadDFF( "modelos/hummer.dff", 470 ) --modelid is everytime 0, when you replace no vehicle
engineReplaceModel( dff, 470 )-- replace the model at least
 
dff = engineLoadDFF( "modelos/copcarla.dff", 596 ) --modelid is everytime 0, when you replace no vehicle
engineReplaceModel( dff, 596 )-- replace the model at least
 
dff = engineLoadDFF( "modelos/infernus.dff", 411 ) --modelid is everytime 0, when you replace no vehicle
engineReplaceModel( dff, 411 )-- replace the model at least
end
 
addEventHandler("onClientResourceStart", getRootElement(), ReplaceObject)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...