ConVar
An object returned by CreateConVar, CreateClientConVar (which uses CreateConVar internally), and GetConVar.
It represents a console variable. See this page for more information.
Methods
string ConVar:GetDefault()
Returns the default value of the ConVar
string ConVar:GetHelpText()
Returns the help text assigned to that convar.
ConVar:Revert()
Reverts ConVar to its default value
This can only be ran on ConVars created from within Lua.
Sets a ConVar's value to 1 or 0 based on the input boolean. This can only be ran on ConVars created from within Lua.
Sets a ConVar's value to the input number.
This can only be ran on ConVars created from within Lua.
Sets a ConVar's value to the input number after converting it to an integer.
This can only be ran on ConVars created from within Lua.