NetworkClient

networkTryAccessTunableBoolHash

NETWORK_TRY_ACCESS_TUNABLE_BOOL_HASH0xC7420099936CE286

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

SignatureJavaScript
networkTryAccessTunableBoolHash(
  tunableContext: Hash,
  tunableName: Hash,
  defaultValue: boolean
): boolean
SignatureLua
networkTryAccessTunableBoolHash(
  tunableContext: Hash,
  tunableName: Hash,
  defaultValue: boolean
): boolean

Usage

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

Parameters

ParameterTypeJavaScriptLua
tunableContextHashnumberinteger
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.

Returns defaultValue if the tunable doesn't exist.

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_TRY_ACCESS_TUNABLE_BOOL_HASH(Hash tunableContext, Hash tunableName, BOOL defaultValue)
Hash
0xC7420099936CE286
Formerly
_NETWORK_ACCESS_TUNABLE_BOOL_HASH_FAIL_VAL

Open in the interactive natives reference