NetworkClient1 output

networkAccessTunableFloatHash

NETWORK_ACCESS_TUNABLE_FLOAT_HASH0x972BC203BBC4C4D5

The 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.

SignatureJavaScript
networkAccessTunableFloatHash(tunableContext: Hash, tunableName: Hash): [
  ok: boolean,
  value: number
]
SignatureLua
networkAccessTunableFloatHash(
  tunableContext: Hash,
  tunableName: Hash
): boolean, number

Usage

JavaScript
const [ok, value] = networkAccessTunableFloatHash(tunableContext, tunableName);
Lua
local ok, value = networkAccessTunableFloatHash(tunableContext, tunableName)

Parameters

ParameterTypeJavaScriptLua
tunableContextHashnumberinteger
tunableNameHashnumberinteger

Returns

2 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1okBOOLbooleanbooleanThe native’s own return value.
2valuefloatnumbernumberoutput

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

Open in the interactive natives reference