⚙ïļcvar

cvar.xxx

Functions

get_int

local var = cvar.sv_cheats
print(var:get_int())

Returns:

cvar's value as an integer

number

get_float

local var = cvar.weapon_recoil_scale
print(var:get_float())

Returns:

cvar's value as a float

number

get_string

local var = cvar.sv_skyname
print(var:get_string())

Returns:

cvar's value as a string

string

set_int

local var = cvar.sv_cheats
var:set_int(1)

value

number

integer value to set cvar to

set_float

local var = cvar.weapon_recoil_scale
var:set_float(0)

value

number

floating point value to set cvar to

set_string

local var = cvar.sv_skyname
var:set_string("vertigo")

value

string

string value to set cvar to

Last updated