_COUNT_BIT_FLAGS
Hash
0xE704838F36F93B7BRuntime name
CountBitFlagsNamespaceMISC
SideClient
NameCommunity guess
Docs
Since build1355
Signature
int _COUNT_BIT_FLAGS(Any* bitFlags);Parameters
| Name | Type | Description |
|---|---|---|
bitFlags | Any* | — |
Returns int
Usage
local retval, bitFlags = CountBitFlags(bitFlags)
-- always works, by hash
local retval, bitFlags = Citizen.InvokeNative(0xE704838F36F93B7B, Citizen.PointerValueIntInitialized(bitFlags), Citizen.ResultAsInteger())JavaScript and C#
const [retval, bitFlags] = CountBitFlags(bitFlags);
// by hash
const [retval, bitFlags] = Citizen.invokeNative('0xE704838F36F93B7B', Citizen.pointerValueIntInitialized(bitFlags), Citizen.returnResultAnyway(), Citizen.resultAsInteger());var bitFlags = new OutputArgument();
int retval = Function.Call<int>((Hash)0xE704838F36F93B7B, 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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.