mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-28 03:55:23 +09:00
Update cheat-mode.lua
This commit is contained in:
committed by
GitHub
parent
a58a5e47db
commit
72ec302a6f
@@ -8,8 +8,8 @@ Discord: https://discord.gg/r6dC2uK
|
||||
]]
|
||||
--Please Only Edit Below This Line-----------------------------------------------------------
|
||||
|
||||
commands.add_command('cheat-mode', 'Toggles cheat mode for a player', {'player'}, function(event,args)
|
||||
commands.add_command('cheat-mode', 'Toggles cheat mode for a player.', {'player'}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
if player.cheat_mode == true then player.cheat_mode = false else player.cheat_mode = true end
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user