GetConvarInt
Docslocal retval = GetConvarInt(varName, default_)Description
Can be used to get a console variable casted back to int (an integer value).
Parameters
| Name | Type | Description |
|---|---|---|
varName | char* | The console variable to look up. |
default_ | int | The default value to set if none is found (variable not set using [SET_CONVAR](#\_0x341B16D2), or not accessible). |
Returns
intReturns an integer value.
Examples
Official
if GetConvarInt('remainingRounds', 0) < 900 then
Citizen.Trace("Less than 900 rounds remaining...")
end