_IS_ANIMAL_CONTROLLED_BY_A_PLAYER
Returns true only if it's a player ped and an animal as well.
Hash
0x0E2F43516F998269Runtime name
IsAnimalControlledByAPlayerNamespacePED
SideClient
NameCommunity guess
Docs
Since build1311
Signature
BOOL _IS_ANIMAL_CONTROLLED_BY_A_PLAYER(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns BOOL
Description
Returns true only if it's a player ped and an animal as well.
_IS_ANY_* - _IS_CONTROL_*
Usage
local retval = IsAnimalControlledByAPlayer(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x0E2F43516F998269, ped, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsAnimalControlledByAPlayer(ped);
// by hash
const retval = Citizen.invokeNative('0x0E2F43516F998269', ped, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x0E2F43516F998269, ped);- 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.