# areVehicleLightTrailsEnabled (Client)

> Tells whether a vehicle leaves light trails behind its tail lamps.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Vehicle looks
- **URL**: https://wiki.mymp.gg/en/areVehicleLightTrailsEnabled

## Syntax

```lua
bool areVehicleLightTrailsEnabled(vehicle vehicle)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vehicle` | `vehicle` | The vehicle. |

## Returns

`true` if the trails are on, `false` if they are off or the vehicle is not streamed in.

## Example

```lua
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
    setVehicleLightTrailsEnabled(vehicle, not areVehicleLightTrailsEnabled(vehicle))
end
```

## See also

- [setVehicleLightTrailsEnabled (Client)](https://wiki.mymp.gg/en/setVehicleLightTrailsEnabled.md): Turns on or off red light trails behind a vehicle's lit tail lamps, longer the faster it goes.
