# CFX::TASK_WARP_PED_INTO_VEHICLE

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

## Signature

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

## Parameters

- `ped` (`Ped`) — The Ped to be warped into the vehicle.
- `vehicle` (`Vehicle`) — The target vehicle into which the ped will be warped.
- `seatIndex` (`int`) — See eSeatPosition declared in [`IS_VEHICLE_SEAT_FREE`](#\_0x22AC59A870E6A669).

## Returns

`void`

## Description

*Source: Cfx.re native reference*

```
NativeDB Introduced: v323
```

Warp a ped into a vehicle.
**Note**: It's better to use [`TASK_ENTER_VEHICLE`](#\_0xC20E50AA46D09CA8) with the flag "warp" flag instead of this native.

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

## Usage

### Lua

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

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

### JavaScript

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

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

### C#

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

*Sources: Cfx.re native reference.*
