ClientConVars and ConVars

Are ConVars automatically only changeable by admins? How do they work?

-bump-

Convars have certain flags for who can use it and the effects.
Here’s a list: https://developer.valvesoftware.com/wiki/Developer_Console_Control#The_FCVAR_flags
Client convars are just basically client-side convars.

Also, don’t bump a post after 15 hours.

Convars are only changeable by server? or RCon i think?

Could be done like

[lua]
function changesomethingimportant(ply,cmd,arg)
if !ply:IsAdmin() then return; end
game.ConCommand(“sv_var”, arg[1]);
end
[/lua]

I don’t remember game.concommand exactly. I don’t know if it’s one or two args. And THat wouldn’t work directly.

They could be changed by client with the flag: CLIENTCMD_CAN_EXECUTE