networkAccessTunableFloatHash
NETWORK_ACCESS_TUNABLE_FLOAT_HASH0x972BC203BBC4C4D5The GTA V native NETWORK_ACCESS_TUNABLE_FLOAT_HASH of the NETWORK namespace, as LS:MP client scripts call it: the global function networkAccessTunableFloatHash, in JavaScript and in Lua.
networkAccessTunableFloatHash(tunableContext: Hash, tunableName: Hash): [
ok: boolean,
value: number
]networkAccessTunableFloatHash(
tunableContext: Hash,
tunableName: Hash
): boolean, numberUsage
JavaScript
const [ok, value] = networkAccessTunableFloatHash(tunableContext, tunableName);Lua
local ok, value = networkAccessTunableFloatHash(tunableContext, tunableName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
tunableContext | Hash | number | integer |
tunableName | Hash | number | integer |
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_HASH(Hash tunableContext, Hash tunableName, float* value)- Hash
0x972BC203BBC4C4D5- Formerly
_NETWORK_ACCESS_TUNABLE_FLOAT_HASH