Minotaur Posted June 12, 2013 Posted June 12, 2013 I have one script. cars on the water but not good function CheatMode(commandName,command) else if command=='water' then if not isWorldSpecialPropertyEnabled('hovercars') then setWorldSpecialPropertyEnabled('hovercars',true) else setWorldSpecialPropertyEnabled('hovercars',false) end addCommandHandler('water', CheatMode,false)
JuniorMelo Posted June 12, 2013 Posted June 12, 2013 test addCommandHandler("water", function ( command ) if not isWorldSpecialPropertyEnabled( "hovercars" ) then setWorldSpecialPropertyEnabled( "hovercars", true ) outputChatBox("water car activated ! ", 124, 252, 0 ) else setWorldSpecialPropertyEnabled( "hovercars", false ) outputChatBox("water car disabled !", 124, 252, 0 ) end end )
xXMADEXx Posted June 12, 2013 Posted June 12, 2013 function CheatMode(player,command) if not isWorldSpecialPropertyEnabled('hovercars') then setWorldSpecialPropertyEnabled('hovercars',true) else setWorldSpecialPropertyEnabled('hovercars',false) end end addCommandHandler('water', CheatMode,false) -- You don't need to check the command if the command is "water"
Minotaur Posted June 12, 2013 Author Posted June 12, 2013 Each of the two this is the problem: attempt to call global 'isWorldSpecialPropertyEnabled'
iPrestege Posted June 12, 2013 Posted June 12, 2013 -- # Client Side : function CheatMode ( ) local Enable = not isWorldSpecialPropertyEnabled( 'hovercars' ) setWorldSpecialPropertyEnabled( 'hovercars',Enable ) end addCommandHandler( 'water', CheatMode ) More easier !
Baseplate Posted June 12, 2013 Posted June 12, 2013 addCommandHandler("water", function() setWorldSpecialPropertyEnabled("hovercars", not isWorldSpecialPropertyEnabled("hovercars")) end ) Easier.
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