RedM Natives

GET_LAST_PED_IN_VEHICLE_SEAT

Hash0x74583B19FEEAFDA7
Runtime nameGetLastPedInVehicleSeat
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x83F969AA1EE2A664

Signature

Ped GET_LAST_PED_IN_VEHICLE_SEAT(Vehicle vehicle, int seatIndex);

Parameters

NameTypeDescription
vehicleVehicle—
seatIndexint—

Returns Ped

Description

Usage

Lua
local retval = GetLastPedInVehicleSeat(vehicle, seatIndex)

-- always works, by hash
local retval = Citizen.InvokeNative(0x74583B19FEEAFDA7, vehicle, seatIndex, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetLastPedInVehicleSeat(vehicle, seatIndex);

// by hash
const retval = Citizen.invokeNative('0x74583B19FEEAFDA7', vehicle, seatIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x74583B19FEEAFDA7, vehicle, seatIndex);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.