freudo Posted February 21, 2015 Share Posted February 21, 2015 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
Dealman Posted February 21, 2015 Share Posted February 21, 2015 How are you triggering the event replaceclient? Link to comment
freudo Posted February 21, 2015 Author Share Posted February 21, 2015 yes ı used triggerEvent("restoreClient",getLocalPlayer()) Link to comment
freudo Posted February 21, 2015 Author Share Posted February 21, 2015 okkkey ı fixed problem 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