samt2497 Posted January 30, 2010 Share Posted January 30, 2010 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
Gamesnert Posted January 30, 2010 Share Posted January 30, 2010 Eh, place all functions in the same function perhaps? And are you sure all necessary files are added to the meta.xml? Link to comment
samt2497 Posted January 30, 2010 Author Share Posted January 30, 2010 all is placed in mta.xml and try place all functions in the same function dont work Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now