M MY Multiplayer: Wiki
Side
Kind

getConvarInt

Shared

Reads a convar as an integer.

int getConvarInt(string name [, int default = 0])

Parameters

NameTypeDescription
namestringThe convar's name.
defaultintWhat to return when the convar does not exist or is not an integer.default 0

Returns

The convar's value. If it does not exist or is not an integer, default.

Example

local queueSize = getConvarInt("queue_size", 500)

See also