NetworkClient1 output

networkAccessTunableInt

NETWORK_ACCESS_TUNABLE_INT0x8BE1146DFD5D4468

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

SignatureJavaScript
networkAccessTunableInt(tunableContext: string, tunableName: string): [
  ok: boolean,
  value: number
]
SignatureLua
networkAccessTunableInt(
  tunableContext: string,
  tunableName: string
): boolean, integer

Usage

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

Parameters

ParameterTypeJavaScriptLua
tunableContextstringstringstring
tunableNamestringstringstring

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(const char* tunableContext, const char* tunableName, int* value)
Hash
0x8BE1146DFD5D4468

Open in the interactive natives reference