The Lab
PED native

_GET_CARRIER_AS_PED

returns Ped1 parambuild 1207

Returns the ped carrying entity, whether human or animal.

Signature

C
Ped _GET_CARRIER_AS_PED(Entity entity); // 0x09B83E68DE004CD4 b1207

Parameters

#NameType
1entityEntity

Facts

Facts about _GET_CARRIER_AS_PED
Name
_GET_CARRIER_AS_PED
Hash
0x09B83E68DE004CD4
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(0x09B83E68DE004CD4, -- _GET_CARRIER_AS_PED
  PlayerPedId(), -- Entity entity
  Citizen.ResultAsInteger()
)
print(ped)
JavaScript
const ped = Citizen.invokeNative("0x09B83E68DE004CD4", // _GET_CARRIER_AS_PED
  PlayerPedId(), // Entity entity
  Citizen.resultAsInteger()
);
console.log(ped)
C#
int ped = Function.Call<int>((Hash)0x09B83E68DE004CD4, // _GET_CARRIER_AS_PED
  API.PlayerPedId() // Entity entity
);
All PED natives

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