RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_VEHICLE_PED_IS_IN

GET_VEHICLE_PED_IS_IN

Gets the vehicle the specified Ped is/was in depending on bool value. This native is used server side when using OneSync.

CFX

Signature

lua
GetVehiclePedIsIn(PlayerPedId(), true)
-- returns Vehicle

Parameters

NameTypeDescription
PedThe target ped
BOOLFalse = CurrentVehicle, True = LastVehicle

Usage

lua
GetVehiclePedIsIn(PlayerPedId(), true)

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