networkTryAccessTunableBoolHash
NETWORK_TRY_ACCESS_TUNABLE_BOOL_HASH0xC7420099936CE286The 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.
networkTryAccessTunableBoolHash(
tunableContext: Hash,
tunableName: Hash,
defaultValue: boolean
): booleannetworkTryAccessTunableBoolHash(
tunableContext: Hash,
tunableName: Hash,
defaultValue: boolean
): booleanUsage
JavaScript
const result = networkTryAccessTunableBoolHash(tunableContext, tunableName, defaultValue);Lua
local result = networkTryAccessTunableBoolHash(tunableContext, tunableName, defaultValue)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
tunableContext | Hash | number | integer |
tunableName | Hash | number | integer |
defaultValue | BOOL | boolean | boolean |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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