_IS_ANY_BIT_FLAG_SET
Hash
0x80E9C316EF84DD81Runtime name
IsAnyBitFlagSetNamespaceMISC
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _IS_ANY_BIT_FLAG_SET(Any* bitFlags);Parameters
| Name | Type | Description |
|---|---|---|
bitFlags | Any* | — |
Returns BOOL
Usage
local retval, bitFlags = IsAnyBitFlagSet(bitFlags)
-- always works, by hash
local retval, bitFlags = Citizen.InvokeNative(0x80E9C316EF84DD81, Citizen.PointerValueIntInitialized(bitFlags), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, bitFlags] = IsAnyBitFlagSet(bitFlags);
// by hash
const [retval, bitFlags] = Citizen.invokeNative('0x80E9C316EF84DD81', Citizen.pointerValueIntInitialized(bitFlags), Citizen.returnResultAnyway());var bitFlags = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x80E9C316EF84DD81, 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.