GET_PED_IN_VEHICLE_SEAT
Signature
Entity GET_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 ped in the specified seat of the passed vehicle. Returns 0 if the specified seat is not occupied.
Usage
local retval = GetPedInVehicleSeat(vehicle, seatIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0x388fde9a, vehicle, seatIndex, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedInVehicleSeat(vehicle, seatIndex);
// by hash
const retval = Citizen.invokeNative('0x388fde9a', vehicle, seatIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x388fde9a, vehicle, seatIndex);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.