The Lab
SCRIPT native

_IS_ANY_PLAYER_BIT_SET

returns BOOL1 parambuild 1207

Returns true if any bit is set in the player bitset playerBits.

Signature

C
BOOL _IS_ANY_PLAYER_BIT_SET(int* playerBits); // 0x179A6F0EE2E79026 b1207

Parameters

#NameType
1playerBitsint* (out pointer)

Facts

Facts about _IS_ANY_PLAYER_BIT_SET
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.

Lua
local result, playerBits = Citizen.InvokeNative(0x179A6F0EE2E79026, -- _IS_ANY_PLAYER_BIT_SET
  Citizen.PointerValueInt(), -- int* playerBits
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, playerBits] = Citizen.invokeNative("0x179A6F0EE2E79026", // _IS_ANY_PLAYER_BIT_SET
  Citizen.pointerValueInt(), // int* playerBits
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var playerBitsArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x179A6F0EE2E79026, // _IS_ANY_PLAYER_BIT_SET
  playerBitsArg // int* playerBits
);
int playerBits = playerBitsArg.GetResult<int>();
All SCRIPT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.