RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_VEHICLE_TYPE

GET_VEHICLE_TYPE

Returns the type of the passed vehicle. For client scripts, reference the more detailed [GET_VEHICLE_TYPE_RAW](#\_0xDE73BC10) native. ### Vehicle types * automobile * bike * boat * heli * plane * submarine * trailer * train

CFX

Signature

lua
GetVehicleType(GetVehiclePedIsIn(PlayerPedId(), false))
-- returns char*

Parameters

NameTypeDescription
VehicleThe vehicle's entity handle.

Usage

lua
GetVehicleType(GetVehiclePedIsIn(PlayerPedId(), false))

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