Sign in to follow this  
Machine

whats the error in this code?

Recommended Posts

so i have this code 


function replaceModel()  
  banner = engineLoadTXD("ce_payspray.txd", 12978) 
  engineImportTXD( banner, 12978 ) 
  dff = engineLoadDFF("sw_shed02.dff", 12978) 
  engineReplaceModel( dff, 12978 ) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 

can someone tell me what am i doing wrong because it does start but the banner didnt change 

the object i am trying to replace is the 12978 sw_SHED02

Share this post


Link to post

What the hell are you talking about u didn't understand what I said ?

I already explained what's going on I am trying to change the little sign which is on the object 12978 so I can put my own logo . When I start the script it does start without errors but no change happen to the sign it stays the same 

 

Share this post


Link to post
function replaceModel()  
  banner = engineLoadTXD("ce_payspray.txd") 
  engineImportTXD( banner, 12978 ) 
  dff = engineLoadDFF("sw_shed02.dff") 
  engineReplaceModel( dff, 12978 )
end 
addEventHandler ( "onClientResourceStart", resourceRoot , replaceModel)

 

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.