RedM Natives

IS_BIT_SET

Hash0x4ED6CFDFE8D4131A
Runtime nameIsBitSet
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xA921AA820C25702F

Signature

BOOL IS_BIT_SET(int address, int offset);

Parameters

NameTypeDescription
addressint—
offsetint—

Returns BOOL

Usage

Lua
local retval = IsBitSet(address, offset)

-- always works, by hash
local retval = Citizen.InvokeNative(0x4ED6CFDFE8D4131A, address, offset, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsBitSet(address, offset);

// by hash
const retval = Citizen.invokeNative('0x4ED6CFDFE8D4131A', address, offset, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x4ED6CFDFE8D4131A, address, offset);

Sources

alloc8or RDR3 NativeDB

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