TASK_ENTER_VEHICLE
``` speed 1.0 = walk, 2.0 = run p5 1 = normal, 3 = teleport to vehicle, 8 = normal/carjack ped from seat, 16 = teleport directly into vehicle p6 is always 0 ``` **This is the server-side RPC native equivalent of the client native [TASK_ENTER_VEHICLE](?\_0xC20E50AA46D09CA8).**
CFX
Signature
lua
TaskEnterVehicle(PlayerPedId(), GetVehiclePedIsIn(PlayerPedId(), false), 0, 0, 0.0, 0, p6)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Ped | — | |
| Vehicle | — | |
| int | — | |
| int | See eSeatPosition declared in [`IS_VEHICLE_SEAT_FREE`](#\_0x22AC59A870E6A669). | |
| float | — | |
| int | — | |
| Any | — |
Usage
lua
TaskEnterVehicle(PlayerPedId(), GetVehiclePedIsIn(PlayerPedId(), false), 0, 0, 0.0, 0, p6)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
