_GET_PED_IN_TRANSPORT_SEAT
Hash
0xFFEC4B0A1A3ED515Runtime name
GetPedInTransportSeatNamespaceAITRANSPORT
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Ped _GET_PED_IN_TRANSPORT_SEAT(Entity transportEntity, int seatIndex);Parameters
| Name | Type | Description |
|---|---|---|
transportEntity | Entity | — |
seatIndex | int | — |
Returns Ped
Description
seatIndex: see CREATE_PED_INSIDE_VEHICLE
Usage
local retval = GetPedInTransportSeat(transportEntity, seatIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0xFFEC4B0A1A3ED515, transportEntity, seatIndex, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedInTransportSeat(transportEntity, seatIndex);
// by hash
const retval = Citizen.invokeNative('0xFFEC4B0A1A3ED515', transportEntity, seatIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xFFEC4B0A1A3ED515, transportEntity, seatIndex);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.