RedM Natives

_GET_PED_IN_TRANSPORT_SEAT

Hash0xFFEC4B0A1A3ED515
Runtime nameGetPedInTransportSeat
NamespaceAITRANSPORT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Ped _GET_PED_IN_TRANSPORT_SEAT(Entity transportEntity, int seatIndex);

Parameters

NameTypeDescription
transportEntityEntity—
seatIndexint—

Returns Ped

Description

Usage

Lua
local retval = GetPedInTransportSeat(transportEntity, seatIndex)

-- always works, by hash
local retval = Citizen.InvokeNative(0xFFEC4B0A1A3ED515, transportEntity, seatIndex, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPedInTransportSeat(transportEntity, seatIndex);

// by hash
const retval = Citizen.invokeNative('0xFFEC4B0A1A3ED515', transportEntity, seatIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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