_GET_ACTIVE_ANIMAL_OWNER
Returns the ped that currently owns animal, such as a player's horse owner.
Signature
Ped _GET_ACTIVE_ANIMAL_OWNER(Ped animal); // 0xF103823FFE72BB49 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | animal | Ped |
Facts
| Name | _GET_ACTIVE_ANIMAL_OWNER |
|---|---|
| Hash | 0xF103823FFE72BB49 |
| Namespace | |
| Returns | Ped |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local ped = Citizen.InvokeNative(0xF103823FFE72BB49, -- _GET_ACTIVE_ANIMAL_OWNER
PlayerPedId(), -- Ped animal
Citizen.ResultAsInteger()
)
print(ped)const ped = Citizen.invokeNative("0xF103823FFE72BB49", // _GET_ACTIVE_ANIMAL_OWNER
PlayerPedId(), // Ped animal
Citizen.resultAsInteger()
);
console.log(ped)int ped = Function.Call<int>((Hash)0xF103823FFE72BB49, // _GET_ACTIVE_ANIMAL_OWNER
API.PlayerPedId() // Ped animal
);Related PED natives
- _GET_ACTIVE_DYNAMIC_SCENARIO
- _GET_ACTIVE_DYNAMIC_SCENARIO_2
- _CLEAR_ACTIVE_ANIMAL_OWNER
- _GET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER
- _GET_ACCURACY_AGAINST_LOCAL_PLAYER_MODIFIER
- _GET_BLOCKING_OF_NON_TEMPORARY_EVENTS
- _GET_CARRIED_PELT_SKINS
- _GET_CARRIER_AS_HUMAN
- _GET_CARRIER_AS_MOUNT
- _GET_CARRIER_AS_PED
- _GET_CATEGORY_OF_COMPONENT_AT_INDEX
- _GET_CHAR_EXPRESSION
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.