Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Vehicle lights
- function vehLightOn(player, command, text)
- local vehicle = getPedOccupiedVehicle(player)
- local driver = getVehicleOccupant(player)
- if getVehicleOverrideLights(vehicle) ~= 2 then
- if driver then
- setVehicleOverrideLights(vehicle, 2)
- outputChatBox("Lights on", player, 0, 255, 0)
- else
- setVehicleOverrideLights(vehicle, 1)
- outputChatBox("Lights off", player, 255, 0, 0)
- end
- end
- end
- addCommandHandler("lights", vehLightOn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement