areVehicleLightTrailsEnabled
Client
Tells whether a vehicle leaves light trails behind its tail lamps.
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
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
setVehicleLightTrailsEnabled(vehicle, not areVehicleLightTrailsEnabled(vehicle))
end