NetworkClient1 output

networkAccessTunableIntHash

NETWORK_ACCESS_TUNABLE_INT_HASH0x40FCE03E50E8DBE8

The GTA V native NETWORK_ACCESS_TUNABLE_INT_HASH of the NETWORK namespace, as LS:MP client scripts call it: the global function networkAccessTunableIntHash, in JavaScript and in Lua.

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

Usage

JavaScript
const [ok, value] = networkAccessTunableIntHash(tunableContext, tunableName);
Lua
local ok, value = networkAccessTunableIntHash(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.
2valueintnumberintegeroutput

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_ACCESS_TUNABLE_INT_HASH(Hash tunableContext, Hash tunableName, int* value)
Hash
0x40FCE03E50E8DBE8
Formerly
_NETWORK_ACCESS_TUNABLE_INT_HASH

Open in the interactive natives reference