RedM Natives

SET_BIT

Hash0xF73FBE4845C43B5B
Runtime nameSetBit
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x933D6A9EEC1BACD0

Signature

void SET_BIT(int* address, int offset);

Parameters

NameTypeDescription
addressint*—
offsetint—

Returns void

Usage

Lua
local address = SetBit(offset)

-- always works, by hash
local address = Citizen.InvokeNative(0xF73FBE4845C43B5B, Citizen.PointerValueInt(), offset)
JavaScript and C#
JavaScript
const address = SetBit(offset);

// by hash
const address = Citizen.invokeNative('0xF73FBE4845C43B5B', Citizen.pointerValueInt(), offset);
C#
var address = new OutputArgument();
Function.Call((Hash)0xF73FBE4845C43B5B, address, offset);
// address.GetResult<int>()
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.