RedM Natives

CLEAR_BIT

Hash0x7D1D4A3602B6AD4E
Runtime nameClearBit
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xE80492A9AC099A93

Signature

void CLEAR_BIT(int* address, int offset);

Parameters

NameTypeDescription
addressint*—
offsetint—

Returns void

Usage

Lua
local address = ClearBit(offset)

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

// by hash
const address = Citizen.invokeNative('0x7D1D4A3602B6AD4E', Citizen.pointerValueInt(), offset);
C#
var address = new OutputArgument();
Function.Call((Hash)0x7D1D4A3602B6AD4E, 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.