getConvarInt
Shared
Reads a convar as an integer.
int getConvarInt(string name [, int default = 0])
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | The convar's name. |
| default | int | What 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)