# AITRANSPORT::_SET_PED_USE_TRANSPORT_SEAT_PREFERENCE

- **Hash:** `0xB7079F4C72896756`
- **Namespace:** AITRANSPORT
- **Runtime name (Lua/JS):** `SetPedUseTransportSeatPreference`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/AITRANSPORT/_SET_PED_USE_TRANSPORT_SEAT_PREFERENCE

## Signature

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

## Parameters

- `ped` (`Ped`)
- `transportEntity` (`Entity`)
- `preferenceSlot` (`int`)
- `p3` (`int`)
- `seatIndex` (`int`)

## Returns

`void`

## Usage

### Lua

```lua
SetPedUseTransportSeatPreference(ped, transportEntity, preferenceSlot, p3, seatIndex)

-- always available, by hash
Citizen.InvokeNative(0xB7079F4C72896756, ped, transportEntity, preferenceSlot, p3, seatIndex)
```

### JavaScript

```js
SetPedUseTransportSeatPreference(ped, transportEntity, preferenceSlot, p3, seatIndex);

// by hash
Citizen.invokeNative('0xB7079F4C72896756', ped, transportEntity, preferenceSlot, p3, seatIndex);
```

### C#

```csharp
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.*
