RedM Natives

_CLEAR_ALL_BIT_FLAGS

Hash0xD2D74F89DF844A50
Runtime nameClearAllBitFlags
NamespaceMISC
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _CLEAR_ALL_BIT_FLAGS(Any* bitFlags);

Parameters

NameTypeDescription
bitFlagsAny*—

Returns void

Usage

Lua
local bitFlags = ClearAllBitFlags(bitFlags)

-- always works, by hash
local bitFlags = Citizen.InvokeNative(0xD2D74F89DF844A50, Citizen.PointerValueIntInitialized(bitFlags))
JavaScript and C#
JavaScript
const bitFlags = ClearAllBitFlags(bitFlags);

// by hash
const bitFlags = Citizen.invokeNative('0xD2D74F89DF844A50', Citizen.pointerValueIntInitialized(bitFlags));
C#
var bitFlags = new OutputArgument();
Function.Call((Hash)0xD2D74F89DF844A50, bitFlags);
// bitFlags.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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