_IS_BIT_FLAG_SET
Returns true if the bit flag is set in bitFlags.
Signature
BOOL _IS_BIT_FLAG_SET(Any* bitFlags, int flag); // 0x8F4F050054005C27 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | bitFlags | Any* (out pointer) |
| 2 | flag | int |
Facts
| Name | _IS_BIT_FLAG_SET |
|---|---|
| Hash | 0x8F4F050054005C27 |
| 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, bitFlags = Citizen.InvokeNative(0x8F4F050054005C27, -- _IS_BIT_FLAG_SET
Citizen.PointerValueInt(), -- Any* bitFlags
0, -- int flag
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, bitFlags] = Citizen.invokeNative("0x8F4F050054005C27", // _IS_BIT_FLAG_SET
Citizen.pointerValueInt(), // Any* bitFlags
0, // int flag
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var bitFlagsArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x8F4F050054005C27, // _IS_BIT_FLAG_SET
bitFlagsArg, // Any* bitFlags
0 // int flag
);
int bitFlags = bitFlagsArg.GetResult<int>();Related MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.