Jump to content

Custom map objects.


Guest Arvis

Recommended Posts

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 by Guest
Link to comment

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

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...