NOTE: This is an archive of the old wiki.
Expect content to be outdated and links to be broken.

User Tools


obsolete:lua:lua_getcvar

Lua GetCVar

string GetCVar( string cvarName );

Description

Gets the value of a cvar and returns it as a string. Returns “NULL CVAR” if cvar not found.

Version

Beta 3.1

Example

<lua> local warmUp = tonumber( GetCVar(“gg_warmup”) ); </lua>

obsolete/lua/lua_getcvar.txt · Last modified: 2023/09/03 18:43 by 127.0.0.1