Jump to content

[SOLVED] setWorldSpecialPropertyEnabled


#RooTs

Recommended Posts

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) 

wksRuaQ.png

Edited by Guest
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...