_IS_ANY_PLAYER_BIT_SET
Returns true if any bit is set in the player bitset playerBits.
Signature
BOOL _IS_ANY_PLAYER_BIT_SET(int* playerBits); // 0x179A6F0EE2E79026 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | playerBits | int* (out pointer) |
Facts
| Name | _IS_ANY_PLAYER_BIT_SET |
|---|---|
| Hash | 0x179A6F0EE2E79026 |
| 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, playerBits = Citizen.InvokeNative(0x179A6F0EE2E79026, -- _IS_ANY_PLAYER_BIT_SET
Citizen.PointerValueInt(), -- int* playerBits
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, playerBits] = Citizen.invokeNative("0x179A6F0EE2E79026", // _IS_ANY_PLAYER_BIT_SET
Citizen.pointerValueInt(), // int* playerBits
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var playerBitsArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x179A6F0EE2E79026, // _IS_ANY_PLAYER_BIT_SET
playerBitsArg // int* playerBits
);
int playerBits = playerBitsArg.GetResult<int>();Related SCRIPT natives
- _IS_PLAYER_BIT_SET_AT_INDEX
- _SET_PLAYER_BIT_AT_INDEX
- _CLEAR_PLAYER_BIT_AT_INDEX
- _SET_ALL_PLAYER_BITS
- BG_IS_EXITFLAG_SET
- SET_BLOCK_OF_PLAYER_BITS
- _IS_BACKGROUND_SCRIPT
- _IS_GOAL_CONTEXT_ACTIVE
- _IS_THREAD_EXIT_REQUESTED_FOR_THREAD_WITH_THIS_ID
- _CLEAR_ALL_PLAYER_BITS
- _SET_ALL_GLOBAL_BLOCKS_HAVE_BEEN_LOADED
- _SET_GLOBAL_BLOCK_CAN_BE_ACCESSED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.