The Lab
PED native

CREATE_PED_INSIDE_VEHICLE

returns Ped6 paramsbuild 1207

Spawns a ped of model modelHash directly in seat seatIndex of vehicle and returns its handle.

Signature

C
Ped CREATE_PED_INSIDE_VEHICLE(Vehicle vehicle, Hash modelHash, int seatIndex, BOOL p3, BOOL p4, BOOL p5); // 0x7DD959874C1FD534 b1207

Parameters

#NameType
1vehicleVehicle
2modelHashHash
3seatIndexint
4p3BOOL
5p4BOOL
6p5BOOL

Facts

Facts about CREATE_PED_INSIDE_VEHICLE
Name
CREATE_PED_INSIDE_VEHICLE
Hash
0x7DD959874C1FD534
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(0x7DD959874C1FD534, -- CREATE_PED_INSIDE_VEHICLE
  0, -- Vehicle vehicle
  GetHashKey("a_c_horse_arabian_white"), -- Hash modelHash
  0, -- int seatIndex
  false, -- BOOL p3
  false, -- BOOL p4
  false, -- BOOL p5
  Citizen.ResultAsInteger()
)
print(ped)
JavaScript
const ped = Citizen.invokeNative("0x7DD959874C1FD534", // CREATE_PED_INSIDE_VEHICLE
  0, // Vehicle vehicle
  GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  0, // int seatIndex
  false, // BOOL p3
  false, // BOOL p4
  false, // BOOL p5
  Citizen.resultAsInteger()
);
console.log(ped)
C#
int ped = Function.Call<int>((Hash)0x7DD959874C1FD534, // CREATE_PED_INSIDE_VEHICLE
  0, // Vehicle vehicle
  (uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  0, // int seatIndex
  false, // BOOL p3
  false, // BOOL p4
  false // BOOL p5
);
All PED natives

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