NETWORK_ACCESS_TUNABLE_BOOL
Returns the value of the boolean tunable tunableName in the context tunableContext.
Signature
BOOL NETWORK_ACCESS_TUNABLE_BOOL(Hash tunableContext, Hash tunableName); // 0xAA6A47A573ABB75A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | tunableContext | Hash |
| 2 | tunableName | Hash |
Facts
| Name | NETWORK_ACCESS_TUNABLE_BOOL |
|---|---|
| Hash | 0xAA6A47A573ABB75A |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xAA6A47A573ABB75A, -- NETWORK_ACCESS_TUNABLE_BOOL
GetHashKey("name"), -- Hash tunableContext
GetHashKey("name") -- Hash tunableName
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xAA6A47A573ABB75A", // NETWORK_ACCESS_TUNABLE_BOOL
GetHashKey("name"), // Hash tunableContext
GetHashKey("name"), // Hash tunableName
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xAA6A47A573ABB75A, // NETWORK_ACCESS_TUNABLE_BOOL
(uint)API.GetHashKey("name"), // Hash tunableContext
(uint)API.GetHashKey("name") // Hash tunableName
);Related NETWORK natives
- NETWORK_ACCESS_TUNABLE_INT
- NETWORK_TRY_ACCESS_TUNABLE_BOOL_HASH
- NETWORK_TRY_ACCESS_TUNABLE_FLOAT_HASH
- NETWORK_TRY_ACCESS_TUNABLE_INT_HASH
- NETWORK_CAN_ACCESS_MULTIPLAYER
- NETWORK_CHECK_ACCESS_AND_ALERT_IF_FAIL
- NETWORK_DOES_NETWORK_ID_EXIST
- NETWORK_DOES_TUNABLE_EXIST
- NETWORK_GET_DESTROYER_OF_NETWORK_ID
- NETWORK_GET_ENTITY_FROM_NETWORK_ID
- NETWORK_GET_NETWORK_ID_FROM_ENTITY
- NETWORK_GET_NETWORK_ID_FROM_ROPE_ID
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.