RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_VEHICLE_HAS_FLAG

GET_VEHICLE_HAS_FLAG

**Note**: Flags are not the same based on your `gamebuild`. Please see [here](https://docs.fivem.net/docs/game-references/vehicle-references/vehicle-flags) to see a complete list of all vehicle flags. Get vehicle.meta flag by index. Useful examples include `FLAG_LAW_ENFORCEMENT` (31), `FLAG_RICH_CAR` (36), `FLAG_IS_ELECTRIC` (43), `FLAG_IS_OFFROAD_VEHICLE` (48).

CFX

Signature

lua
GetVehicleHasFlag(GetVehiclePedIsIn(PlayerPedId(), false), 0)
-- returns bool

Parameters

NameTypeDescription
VehicleThe vehicle to obtain flags for.
intFlag index.

Usage

lua
GetVehicleHasFlag(GetVehiclePedIsIn(PlayerPedId(), false), 0)

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