GET_CONVAR_INT
Can be used to get a console variable casted back to `int` (an integer value).
CFX
Signature
lua
GetConvarInt(varName, 0)
-- returns intParameters
| Name | Type | Description |
|---|---|---|
| char* | The console variable to look up. | |
| int | The default value to set if none is found (variable not set using [SET_CONVAR](#\_0x341B16D2), or not accessible). |
Usage
lua
GetConvarInt(varName, 0)Details
- Hash
- API set
- Source
- cfx
Source: cfx
