NetworkClientNot in this build

networkGetTunablesRegistrationBool

_NETWORK_GET_TUNABLES_REGISTRATION_BOOL0xB327CF1B8C2C0EA3

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

SignatureJavaScript
networkGetTunablesRegistrationBool(
  tunableName: Hash,
  defaultValue: boolean
): boolean
SignatureLua
networkGetTunablesRegistrationBool(
  tunableName: Hash,
  defaultValue: boolean
): boolean
⚠
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 = networkGetTunablesRegistrationBool(tunableName, defaultValue);
Lua
local result = networkGetTunablesRegistrationBool(tunableName, defaultValue)

Parameters

ParameterTypeJavaScriptLua
tunableNameHashnumberinteger
defaultValueBOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

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
BOOL _NETWORK_GET_TUNABLES_REGISTRATION_BOOL(Hash tunableName, BOOL defaultValue)
Hash
0xB327CF1B8C2C0EA3
Introduced
Game build 3258 legacy numbering

Open in the interactive natives reference