NetworkClientNot in this build

networkGetTunablesRegistrationInt

_NETWORK_GET_TUNABLES_REGISTRATION_INT0x0D94071E55F4C9CE

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

SignatureJavaScript
networkGetTunablesRegistrationInt(
  tunableName: Hash,
  defaultValue: number
): number
SignatureLua
networkGetTunablesRegistrationInt(
  tunableName: Hash,
  defaultValue: integer
): integer
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
const result = networkGetTunablesRegistrationInt(tunableName, defaultValue);
Lua
local result = networkGetTunablesRegistrationInt(tunableName, defaultValue)

Parameters

ParameterTypeJavaScriptLua
tunableNameHashnumberinteger
defaultValueintnumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Checks if the given tunable exists and returns its value. Otherwise returns defaultValue.
Possible tunable contexts must first be set up using networkSetTunablesRegistrationContexts.

Reference

Namespace
Network NETWORK
In the game
int _NETWORK_GET_TUNABLES_REGISTRATION_INT(Hash tunableName, int defaultValue)
Hash
0x0D94071E55F4C9CE
Introduced
Game build 3258 legacy numbering

Open in the interactive natives reference