Skip to content

cvars

Alternative way of getting convars

You can get any convar by simply pretending it's a table entry. Example:

local othermodels = cvars.r_drawothermodels

Methods

find_var(name): convar

Type Name Description Default
string name Convar name none

Finds convar by name. Returns nil if failed

1
2
3
4
5
-- regular way
local fps_max = cvars.find_var('fps_max')

-- faster way
local fps_max = cvars.fps_max