The Lab
VEHICLE native

GET_LAST_PED_IN_VEHICLE_SEAT

returns Ped2 paramsbuild 1207

Returns the last ped that sat in seat seatIndex of vehicle.

Signature

C
Ped GET_LAST_PED_IN_VEHICLE_SEAT(Vehicle vehicle, int seatIndex); // 0x74583B19FEEAFDA7 b1207

Parameters

#NameType
1vehicleVehicle
2seatIndexint

Facts

Facts about GET_LAST_PED_IN_VEHICLE_SEAT
Name
GET_LAST_PED_IN_VEHICLE_SEAT
Hash
0x74583B19FEEAFDA7
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(0x74583B19FEEAFDA7, -- GET_LAST_PED_IN_VEHICLE_SEAT
  0, -- Vehicle vehicle
  0, -- int seatIndex
  Citizen.ResultAsInteger()
)
print(ped)
JavaScript
const ped = Citizen.invokeNative("0x74583B19FEEAFDA7", // GET_LAST_PED_IN_VEHICLE_SEAT
  0, // Vehicle vehicle
  0, // int seatIndex
  Citizen.resultAsInteger()
);
console.log(ped)
C#
int ped = Function.Call<int>((Hash)0x74583B19FEEAFDA7, // GET_LAST_PED_IN_VEHICLE_SEAT
  0, // Vehicle vehicle
  0 // int seatIndex
);
All VEHICLE natives

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