• Can't check console command condition
    2 replies, posted
Hello, I want my lua code check a console command condition but it doesn't work Here is my lua code part: [lua]if GetConVarNumber("sv_cheats") != 1 then return end [/lua] If someone can help me about this or even suggest another code that would help me Thanks
I had this problem aswell. Try just the normal GetConVar. [code]if GetConVar("sv_cheats") != 1 then return end[/code]
[QUOTE=Karp;42384731]I had this problem aswell. Try just the normal GetConVar. [code]if GetConVar("sv_cheats") != 1 then return end[/code][/QUOTE] that.. doesn't even make sense... [code]if (GetConVar("sv_cheats"):GetInt() ~= 1) then return; end[/code]
Sorry, you need to Log In to post a reply to this thread.