# CFX::SET_PED_INTO_VEHICLE

- **Hash:** `0x7500C79`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `SetPedIntoVehicle`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/SET_PED_INTO_VEHICLE

## Signature

```c
void SET_PED_INTO_VEHICLE(Ped ped, Vehicle vehicle, int seatIndex);
```

## Parameters

- `ped` (`Ped`)
- `vehicle` (`Vehicle`)
- `seatIndex` (`int`) — See eSeatPosition declared in [`IS_VEHICLE_SEAT_FREE`](#\_0x22AC59A870E6A669). -2 for the first available seat.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

SET_PED_INTO_VEHICLE

**This is the server-side RPC native equivalent of the client native [SET_PED_INTO_VEHICLE](?\_0xF75B0D629E1C063D).**

## Usage

### Lua

```lua
SetPedIntoVehicle(ped, vehicle, seatIndex)

-- always available, by hash
Citizen.InvokeNative(0x7500c79, ped, vehicle, seatIndex)
```

### JavaScript

```js
SetPedIntoVehicle(ped, vehicle, seatIndex);

// by hash
Citizen.invokeNative('0x7500c79', ped, vehicle, seatIndex);
```

### C#

```csharp
Function.Call((Hash)0x7500c79, ped, vehicle, seatIndex);
```

*Sources: Cfx.re native reference.*
