RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. TASK_ENTER_VEHICLE

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 void

Parameters

NameTypeDescription
Ped—
Vehicle—
int—
intSee 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

On this page

  • Signature
  • Parameters
  • Usage
  • Details