NetworkClient1 output

networkAccessTunableFloat

NETWORK_ACCESS_TUNABLE_FLOAT0xE5608CA7BC163A5F

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

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

Usage

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

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_ACCESS_TUNABLE_FLOAT(const char* tunableContext, const char* tunableName, float* value)
Hash
0xE5608CA7BC163A5F

Open in the interactive natives reference