addEvent("uruchomSwiatla", true) addEventHandler("uruchomSwiatla", root, function(plr) local pojazd = getPedOccupiedVehicle(plr) if pojazd and getVehicleController(pojazd) == plr then if getVehicleOverrideLights(pojazd) ~= 2 then setVehicleOverrideLights(pojazd, 2) outputChatBox("* Uruchomi?e?/a? ?wiat?a.", plr) else setVehicleOverrideLights(pojazd, 1) outputChatBox("* Zgasi?e?/a? ?wiat?a.", plr) end end end)
bindKey("l", "down", function(key, keyState) triggerServerEvent("uruchomSwiatla", resourceRoot, localPlayer) end)