The Lab
VEHICLE native

GET_PED_IN_VEHICLE_SEAT

returns Ped2 paramsbuild 1207

Returns the ped in seat seatIndex of vehicle, or 0 if the seat is empty.

Signature

C
Ped GET_PED_IN_VEHICLE_SEAT(Vehicle vehicle, int seatIndex); // 0xBB40DD2270B65366 b1207

Parameters

#NameType
1vehicleVehicle
2seatIndexint

Facts

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