The Lab
MISC native

_IS_ANY_BIT_FLAG_SET

returns BOOL1 parambuild 1207

Returns true if at least one bit is set in bitFlags.

Signature

C
BOOL _IS_ANY_BIT_FLAG_SET(Any* bitFlags); // 0x80E9C316EF84DD81 b1207

Parameters

#NameType
1bitFlagsAny* (out pointer)

Facts

Facts about _IS_ANY_BIT_FLAG_SET
Name
_IS_ANY_BIT_FLAG_SET
Hash
0x80E9C316EF84DD81
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, bitFlags = Citizen.InvokeNative(0x80E9C316EF84DD81, -- _IS_ANY_BIT_FLAG_SET
  Citizen.PointerValueInt(), -- Any* bitFlags
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, bitFlags] = Citizen.invokeNative("0x80E9C316EF84DD81", // _IS_ANY_BIT_FLAG_SET
  Citizen.pointerValueInt(), // Any* bitFlags
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var bitFlagsArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x80E9C316EF84DD81, // _IS_ANY_BIT_FLAG_SET
  bitFlagsArg // Any* bitFlags
);
int bitFlags = bitFlagsArg.GetResult<int>();
All MISC natives

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