• If XXXXX returns XXX
    2 replies, posted
How would I make something like this if sv_cheats returns 0 then RunConsoleCommand( "sv_cheats 1" )
[URL="wiki.garrysmod.com/page/Global/GetConVar"]GetConVar[/URL](""):[URL="wiki.garrysmod.com/page/ConVar/GetInt"]GetInt[/URL]()
[CODE] local Cheat = GetConVar("sv_cheats"):GetInt() if !Cheat == 1 then game.ConsoleCommmand("sv_cheats 1") else print("cheats are on m8") end [/CODE] something like that, not tested and i'm extremely tired
Sorry, you need to Log In to post a reply to this thread.