function naprawa() local theVehicle=GetPedOccupiedVehicle (source) local cena=takePlayerMoney(source,10) local cena2=getElementHealth(theVehicle) if (cena2 < 90) then (cena * 20) fixVehicle(theVehicle) end end addEvent("naprawa", true) addEventHandler("naprawa", getRootElement(), naprawa)
function napraw (vehicle,plr) if sprawdz ~= team1 then local vehicle=getPedOccupiedVehicle(vehicle) if isElementWithinMarker(vehicle, marker2) then fixVehicle ( vehicle ) else cancelEvent() end end end
function ustawkolor(vehicle,r,g,b,plr) if sprawdz ~= team1 then local vehicle=getPedOccupiedVehicle(vehicle) if isElementWithinMarker(vehicle, marker2) then setVehicleColor(vehicle,r,g,b) else cancelEvent() end end end