The Lab
PED native

_GET_ACTIVE_ANIMAL_OWNER

returns Ped1 parambuild 1207

Returns the ped that currently owns animal, such as a player's horse owner.

Signature

C
Ped _GET_ACTIVE_ANIMAL_OWNER(Ped animal); // 0xF103823FFE72BB49 b1207

Parameters

#NameType
1animalPed

Facts

Facts about _GET_ACTIVE_ANIMAL_OWNER
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.

Lua
local ped = Citizen.InvokeNative(0xF103823FFE72BB49, -- _GET_ACTIVE_ANIMAL_OWNER
  PlayerPedId(), -- Ped animal
  Citizen.ResultAsInteger()
)
print(ped)
JavaScript
const ped = Citizen.invokeNative("0xF103823FFE72BB49", // _GET_ACTIVE_ANIMAL_OWNER
  PlayerPedId(), // Ped animal
  Citizen.resultAsInteger()
);
console.log(ped)
C#
int ped = Function.Call<int>((Hash)0xF103823FFE72BB49, // _GET_ACTIVE_ANIMAL_OWNER
  API.PlayerPedId() // Ped animal
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.