Guest Posted January 27, 2008 Share Posted January 27, 2008 http://development.mtasa.com/index.php? ... ineLoadDFF model_id: The model id that should be associated with the dff, when loading a vehicle. Always specify 0 if you are replacing something else than a vehicle. Link to comment
XetaQuake Posted January 27, 2008 Share Posted January 27, 2008 (edited) thx for this info! now it works but there is one problem: when i connect, the object is white. Only when i reconnect the object get a texture can anybody fix this? it is possibly that the game automatically reconnect when the download is finish? (This is just an idea to fix this problem) here is my code: function replaceTheObjs() txd = engineLoadTXD ( "box.txd" ) engineImportTXD ( txd, 2918 ) dff = engineLoadDFF ( "box.dff", 0 ) engineReplaceModel ( dff, 2918 ) createObject( 2918, -750.46569824219, 1026.3781738281, 45.267562866211 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), replaceTheObjs ) Edited January 27, 2008 by Guest Link to comment
XetaQuake Posted January 27, 2008 Share Posted January 27, 2008 LOL Please think, and then write the object is white. Only when i reconnect the object get a texture your COL idea help nothing at all Link to comment
CJGrove Posted January 28, 2008 Share Posted January 28, 2008 Try function replaceTheObjs() txd = engineLoadTXD ( "box.txd" ) engineImportTXD ( txd, 2918 ) dff = engineLoadDFF ( "box.dff", 2918 ) engineReplaceModel ( dff, 2918 ) createObject( 2918, -750.46569824219, 1026.3781738281, 45.267562866211 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), replaceTheObjs ) Greetings, CJGrove Link to comment
XetaQuake Posted January 28, 2008 Share Posted January 28, 2008 ok now the object have the default texture, and when i reconnect the object get my own TXD this is better, but not perfect, any other ideas? Link to comment
CJGrove Posted January 28, 2008 Share Posted January 28, 2008 I don't know timer or command or something...? Link to comment
XetaQuake Posted January 28, 2008 Share Posted January 28, 2008 you mean to reconnect? no i dont know ;( Link to comment
Gothem Posted January 28, 2008 Share Posted January 28, 2008 and how make an object?? 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