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 boolParameters
| Name | Type | Description |
|---|---|---|
| Vehicle | The vehicle to obtain flags for. | |
| int | Flag 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
