M MY Multiplayer: Wiki
Side
Kind

areVehicleLightTrailsEnabled

Client

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

bool areVehicleLightTrailsEnabled(vehicle vehicle)

Parameters

NameTypeDescription
vehiclevehicleThe 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

See also