Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. -- Vehicle lights
  2. function vehLightOn(player, command, text)
  3. local vehicle = getPedOccupiedVehicle(player)
  4. local driver = getVehicleOccupant(player)
  5. if getVehicleOverrideLights(vehicle) ~= 2 then
  6. if driver then
  7. setVehicleOverrideLights(vehicle, 2)
  8. outputChatBox("Lights on", player, 0, 255, 0)
  9. else
  10. setVehicleOverrideLights(vehicle, 1)
  11. outputChatBox("Lights off", player, 255, 0, 0)
  12. end
  13. end
  14. end
  15. addCommandHandler("lights", vehLightOn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement