GET_LAST_PED_IN_VEHICLE_SEAT
Signature
Entity GET_LAST_PED_IN_VEHICLE_SEAT(Vehicle vehicle, int seatIndex);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The target vehicle. |
seatIndex | int | See eSeatPosition declared in |
Returns Entity — The last ped in the specified seat of the passed vehicle. Returns 0 if the specified seat was never occupied or the last ped does not exist anymore.
Usage
local retval = GetLastPedInVehicleSeat(vehicle, seatIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0xf7c6792d, vehicle, seatIndex, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetLastPedInVehicleSeat(vehicle, seatIndex);
// by hash
const retval = Citizen.invokeNative('0xf7c6792d', vehicle, seatIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xf7c6792d, vehicle, seatIndex);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.