RedM Natives

_IS_ANIMAL_CONTROLLED_BY_A_PLAYER

Returns true only if it's a player ped and an animal as well.

Hash0x0E2F43516F998269
Runtime nameIsAnimalControlledByAPlayer
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1311

Signature

BOOL _IS_ANIMAL_CONTROLLED_BY_A_PLAYER(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns BOOL

Description

Returns true only if it's a player ped and an animal as well.
_IS_ANY_* - _IS_CONTROL_*

Usage

Lua
local retval = IsAnimalControlledByAPlayer(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x0E2F43516F998269, ped, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsAnimalControlledByAPlayer(ped);

// by hash
const retval = Citizen.invokeNative('0x0E2F43516F998269', ped, Citizen.returnResultAnyway());
C#
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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.