#RooTs Posted February 5, 2016 Share Posted February 5, 2016 (edited) I use this function normally, with command. but already triggerEvent it gives error. function hovercars() if not isWorldSpecialPropertyEnabled( "hovercars" ) then setWorldSpecialPropertyEnabled( "hovercars", true ) triggerClientEvent ( "AguaLig", source ) setElementData(source,"CarAgua",true) --outputChatBox("Andar de carro na agua ativado,para desativar digite /agua novamente ! ", 124, 252, 0 ) else setWorldSpecialPropertyEnabled( "hovercars", false ) triggerClientEvent ( "AguaDesl", source ) setElementData(source,"CarAgua",false) --outputChatBox("Andar de carro na agua desativado !", 124, 252, 0 ) end end addEvent("AguaCar", true) addEventHandler("AguaCar", root, hovercars) Edited February 5, 2016 by Guest Link to comment
#RooTs Posted February 5, 2016 Author Share Posted February 5, 2016 Client-only function Oh my god. excuse my stupidity. I forgot to note that is clientSide SORRY Solved 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