RedM Natives

_SET_PED_USE_TRANSPORT_SEAT_PREFERENCE

Hash0xB7079F4C72896756
Runtime nameSetPedUseTransportSeatPreference
NamespaceAITRANSPORT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE(Ped ped, Entity transportEntity, int preferenceSlot, int p3, int seatIndex);

Parameters

NameTypeDescription
pedPed—
transportEntityEntity—
preferenceSlotint—
p3int—
seatIndexint—

Returns void

Usage

Lua
SetPedUseTransportSeatPreference(ped, transportEntity, preferenceSlot, p3, seatIndex)

-- always works, by hash
Citizen.InvokeNative(0xB7079F4C72896756, ped, transportEntity, preferenceSlot, p3, seatIndex)
JavaScript and C#
JavaScript
SetPedUseTransportSeatPreference(ped, transportEntity, preferenceSlot, p3, seatIndex);

// by hash
Citizen.invokeNative('0xB7079F4C72896756', ped, transportEntity, preferenceSlot, p3, seatIndex);
C#
Function.Call((Hash)0xB7079F4C72896756, ped, transportEntity, preferenceSlot, p3, 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.