The Lab
MISC native

IS_BIT_SET

returns BOOL2 paramsbuild 1207

Returns true if bit offset of address is set.

Signature

C
BOOL IS_BIT_SET(int address, int offset); // 0x4ED6CFDFE8D4131A b1207

Parameters

#NameType
1addressint
2offsetint

Facts

Facts about IS_BIT_SET
Name
IS_BIT_SET
Hash
0x4ED6CFDFE8D4131A
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x4ED6CFDFE8D4131A, -- IS_BIT_SET
  0, -- int address
  0 -- int offset
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x4ED6CFDFE8D4131A", // IS_BIT_SET
  0, // int address
  0, // int offset
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x4ED6CFDFE8D4131A, // IS_BIT_SET
  0, // int address
  0 // int offset
);
All MISC natives

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