I'm not sure how to restrict client con vars. I've already hidden the menu that allows you to toggle the client con var, but clients can still type it in via console. Is there anyway I could restrict the console command unless they're an admin?
All client convars are changeable. You're going to have to use a different method for allowing admins to do said thing.
What convar did you have in mind?
[code]
local command1 = CreateClientConVar("command1", 0, true, false)
if command1:GetBool() then
blahblahblah
end
[/code]
Just make a console command out of it which checks if the player is admin.
Sorry, you need to Log In to post a reply to this thread.