_IS_ANY_PLAYER_BIT_SET
Hash
0x179A6F0EE2E79026Runtime name
IsAnyPlayerBitSetNamespaceSCRIPT
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _IS_ANY_PLAYER_BIT_SET(int* playerBits);Parameters
| Name | Type | Description |
|---|---|---|
playerBits | int* | — |
Returns BOOL
Usage
local retval, playerBits = IsAnyPlayerBitSet(playerBits)
-- always works, by hash
local retval, playerBits = Citizen.InvokeNative(0x179A6F0EE2E79026, Citizen.PointerValueIntInitialized(playerBits), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, playerBits] = IsAnyPlayerBitSet(playerBits);
// by hash
const [retval, playerBits] = Citizen.invokeNative('0x179A6F0EE2E79026', Citizen.pointerValueIntInitialized(playerBits), Citizen.returnResultAnyway());var playerBits = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x179A6F0EE2E79026, playerBits);
// playerBits.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
- 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.