The Lab
MISC native

SET_BIT

returns void2 paramsbuild 1207

Sets bit offset of the integer stored at address.

Signature

C
void SET_BIT(int* address, int offset); // 0xF73FBE4845C43B5B b1207

Parameters

#NameType
1addressint* (out pointer)
2offsetint

Facts

Facts about SET_BIT
Name
SET_BIT
Hash
0xF73FBE4845C43B5B
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 address = Citizen.InvokeNative(0xF73FBE4845C43B5B, -- SET_BIT
  Citizen.PointerValueInt(), -- int* address
  0 -- int offset
)
print(address)
JavaScript
const address = Citizen.invokeNative("0xF73FBE4845C43B5B", // SET_BIT
  Citizen.pointerValueInt(), // int* address
  0 // int offset
);
console.log(address)
C#
var addressArg = new OutputArgument();
Function.Call((Hash)0xF73FBE4845C43B5B, // SET_BIT
  addressArg, // int* address
  0 // int offset
);
int address = addressArg.GetResult<int>();
All MISC natives

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