Minotaur Posted June 12, 2013 Share 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) Link to comment
JuniorMelo Posted June 12, 2013 Share 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 ) Link to comment
xXMADEXx Posted June 12, 2013 Share 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" Link to comment
Minotaur Posted June 12, 2013 Author Share Posted June 12, 2013 Each of the two this is the problem: attempt to call global 'isWorldSpecialPropertyEnabled' Link to comment
iPrestege Posted June 12, 2013 Share Posted June 12, 2013 -- # Client Side : function CheatMode ( ) local Enable = not isWorldSpecialPropertyEnabled( 'hovercars' ) setWorldSpecialPropertyEnabled( 'hovercars',Enable ) end addCommandHandler( 'water', CheatMode ) More easier ! Link to comment
Baseplate Posted June 12, 2013 Share Posted June 12, 2013 addCommandHandler("water", function() setWorldSpecialPropertyEnabled("hovercars", not isWorldSpecialPropertyEnabled("hovercars")) end ) Easier. Link to comment
Minotaur Posted June 12, 2013 Author Share Posted June 12, 2013 Thank you to everyone the assistance 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