_COUNT_BIT_FLAGS
Returns how many bits are set in the bit flag structure bitFlags.
Signature
int _COUNT_BIT_FLAGS(Any* bitFlags); // 0xE704838F36F93B7B b1355Parameters
| # | Name | Type |
|---|---|---|
| 1 | bitFlags | Any* (out pointer) |
Facts
| Name | _COUNT_BIT_FLAGS |
|---|---|
| Hash | 0xE704838F36F93B7B |
| Namespace | |
| Returns | int |
| Game build | 1355 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, bitFlags = Citizen.InvokeNative(0xE704838F36F93B7B, -- _COUNT_BIT_FLAGS
Citizen.PointerValueInt(), -- Any* bitFlags
Citizen.ResultAsInteger()
)
print(result, bitFlags)const [result, bitFlags] = Citizen.invokeNative("0xE704838F36F93B7B", // _COUNT_BIT_FLAGS
Citizen.pointerValueInt(), // Any* bitFlags
Citizen.resultAsInteger()
);
console.log(result, bitFlags)var bitFlagsArg = new OutputArgument();
int result = Function.Call<int>((Hash)0xE704838F36F93B7B, // _COUNT_BIT_FLAGS
bitFlagsArg // Any* bitFlags
);
int bitFlags = bitFlagsArg.GetResult<int>();Related MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.