cvar
Warning
Some convars are not available. Enable SCRIPTS > General > Allow insecure to allow fetch of some blocked convars.
__index
cvar.{name: string}
-> cvar
cvar[{name: string}]
-> cvar
Accesses a ConVar by its name.
Parameters
Name | Type | Description |
---|---|---|
name |
string | ConVar name |
Usage
local cl_crosshair = cvar.cl_crosshair;
local cl_crosshair = cvar['cl_crosshair'];