networkAccessTunableFloat
NETWORK_ACCESS_TUNABLE_FLOAT0xE5608CA7BC163A5FThe GTA V native NETWORK_ACCESS_TUNABLE_FLOAT of the NETWORK namespace, as LS:MP client scripts call it: the global function networkAccessTunableFloat, in JavaScript and in Lua.
networkAccessTunableFloat(tunableContext: string, tunableName: string): [
ok: boolean,
value: number
]networkAccessTunableFloat(
tunableContext: string,
tunableName: string
): boolean, numberUsage
JavaScript
const [ok, value] = networkAccessTunableFloat(tunableContext, tunableName);Lua
local ok, value = networkAccessTunableFloat(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 | float | number | number | output |
Reference
- Namespace
- Network NETWORK
- In the game
BOOL NETWORK_ACCESS_TUNABLE_FLOAT(const char* tunableContext, const char* tunableName, float* value)- Hash
0xE5608CA7BC163A5F