Jump to content

engineRestoreModel for object


freudo

Recommended Posts

I make a gui and ı click button and enabled roads

but click again not disabled roads

replaceyol event is working but

replaceclient event not working

codes:

function replace() 
tekstura = engineLoadTXD("vgncarshade1.txd")  
engineImportTXD(tekstura, 3458 ) 
teksturac = engineLoadTXD("vgncarshade.txd")  
engineImportTXD(tekstura, 8838 ) 
teksturas = engineLoadTXD("vgshseing27.txd")  
engineImportTXD(tekstura, 8557 ) 
end  
addEvent("replaceyol",true) 
addEventHandler( "replaceyol",root,replace) 
  
function replacere() 
engineRestoreModel( 3458 ) 
engineRestoreModel( 8838 ) 
engineRestoreModel( 8557 ) 
end  
addEvent("replaceclient",true) 
addEventHandler( "replaceclient",root,replacere) 
  

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