#
Back lights
#
Get back lights state
SHARED
if veh:SV_GetBackLightsState() then
-- Back lights are enabled.
end
#
Enable back lights
SERVER
SV_TurnOnBackLights turns on the back lights of a vehicle.
Returns true if the back lights have been switched on, false otherwise. The operation will fail if the back lights have been disabled.
if veh:SV_TurnOnBackLights() then
-- Back lights enabled.
else
-- Oops, operation failed!
end
#
Disable back lights
SERVER
SV_TurnOffBackLights turns off the back lights of a vehicle.
Returns true if the back lights have been switched off, false otherwise. The operation will fail if the back lights have been disabled.
if veh:SV_TurnOffBackLights() then
-- Back lights disabled.
else
-- Oops, operation failed!
end