_IS_ANIMAL_CONTROLLED_BY_A_PLAYER
Returns true if the animal ped is controlled by a player.
Signature
BOOL _IS_ANIMAL_CONTROLLED_BY_A_PLAYER(Ped ped); // 0x0E2F43516F998269 b1311Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
Facts
| Name | _IS_ANIMAL_CONTROLLED_BY_A_PLAYER |
|---|---|
| Hash | 0x0E2F43516F998269 |
| Namespace | |
| Returns | BOOL |
| Game build | 1311 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x0E2F43516F998269, -- _IS_ANIMAL_CONTROLLED_BY_A_PLAYER
PlayerPedId() -- Ped ped
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x0E2F43516F998269", // _IS_ANIMAL_CONTROLLED_BY_A_PLAYER
PlayerPedId(), // Ped ped
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x0E2F43516F998269, // _IS_ANIMAL_CONTROLLED_BY_A_PLAYER
API.PlayerPedId() // Ped ped
);Related PED natives
- _IS_ANIMAL_INTERACTION_RUNNING
- _IS_ANIMAL_SKINNED
- IS_PED_A_PLAYER
- _IS_THIS_MODEL_A_HORSE
- _GET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER
- _SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER
- GET_PLAYER_PED_IS_FOLLOWING
- IS_ANIMAL_INTERACTION_POSSIBLE
- IS_GROUP_LOCALLY_CONTROLLED
- IS_PED_GETTING_INTO_A_VEHICLE
- SET_PED_CAN_BE_TARGETTED_BY_PLAYER
- _IS_META_PED_ASSET_VALID
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.