_CLEAR_BIT_FLAG
Hash
0xB909149F2BB5F6DARuntime name
ClearBitFlagNamespaceMISC
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _CLEAR_BIT_FLAG(Any* bitFlags, int flag);Parameters
| Name | Type | Description |
|---|---|---|
bitFlags | Any* | — |
flag | int | — |
Returns void
Usage
local bitFlags = ClearBitFlag(flag)
-- always works, by hash
local bitFlags = Citizen.InvokeNative(0xB909149F2BB5F6DA, Citizen.PointerValueInt(), flag)JavaScript and C#
const bitFlags = ClearBitFlag(flag);
// by hash
const bitFlags = Citizen.invokeNative('0xB909149F2BB5F6DA', Citizen.pointerValueInt(), flag);var bitFlags = new OutputArgument();
Function.Call((Hash)0xB909149F2BB5F6DA, bitFlags, flag);
// bitFlags.GetResult<int>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
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
InvokeNativewith the hash — it always works.
See also
_SET_BIT_FLAGSimilar to SET_BIT but specifically designed for large (>32 flags) bit flag sets.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.