networkAccessTunableInt
NETWORK_ACCESS_TUNABLE_INT0x8BE1146DFD5D4468The GTA V native NETWORK_ACCESS_TUNABLE_INT of the NETWORK namespace, as LS:MP client scripts call it: the global function networkAccessTunableInt, in JavaScript and in Lua.
networkAccessTunableInt(tunableContext: string, tunableName: string): [
ok: boolean,
value: number
]networkAccessTunableInt(
tunableContext: string,
tunableName: string
): boolean, integerUsage
JavaScript
const [ok, value] = networkAccessTunableInt(tunableContext, tunableName);Lua
local ok, value = networkAccessTunableInt(tunableContext, tunableName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
tunableContext | string | string | string |
tunableName | string | string | string |
Returns
2 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | value | int | number | integer | output |
Reference
- Namespace
- Network NETWORK
- In the game
BOOL NETWORK_ACCESS_TUNABLE_INT(const char* tunableContext, const char* tunableName, int* value)- Hash
0x8BE1146DFD5D4468