The Lab
MISC native

_SET_BIT_FLAG

returns void2 paramsbuild 1207

Sets the bit flag in the bit flag structure bitFlags.

Signature

C
void _SET_BIT_FLAG(Any* bitFlags, int flag); // 0xE84AAC1B22A73E99 b1207

Parameters

#NameType
1bitFlagsAny* (out pointer)
2flagint

Facts

Facts about _SET_BIT_FLAG
Name
_SET_BIT_FLAG
Hash
0xE84AAC1B22A73E99
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local bitFlags = Citizen.InvokeNative(0xE84AAC1B22A73E99, -- _SET_BIT_FLAG
  Citizen.PointerValueInt(), -- Any* bitFlags
  0 -- int flag
)
print(bitFlags)
JavaScript
const bitFlags = Citizen.invokeNative("0xE84AAC1B22A73E99", // _SET_BIT_FLAG
  Citizen.pointerValueInt(), // Any* bitFlags
  0 // int flag
);
console.log(bitFlags)
C#
var bitFlagsArg = new OutputArgument();
Function.Call((Hash)0xE84AAC1B22A73E99, // _SET_BIT_FLAG
  bitFlagsArg, // Any* bitFlags
  0 // int flag
);
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.