Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. setElementData(veh,"Pojemnosc:silnika", vehicle["silnik"])
  2. local fastpoj = getVehicleHandlingProperty(veh,"maxVelocity")
  3. local fastmax = getVehicleHandlingProperty(veh,"engineAcceleration")
  4. local Pojemnosc = getElementData(veh,"Pojemnosc:silnika") or "1.4"
  5. if Pojemnosc == '1.6' then -- pojemnosc silnika 1.6
  6. setVehicleHandling(veh,"engineAcceleration",fastmax+0.5)
  7. setVehicleHandling(veh,"maxVelocity",fastpoj+25)
  8. elseif Pojemnosc == '1.8' then -- pojemnosc silnika 1.8
  9. setVehicleHandling(veh,"maxVelocity",fastpoj+30)
  10. setVehicleHandling(veh,"engineAcceleration",fastmax+1)
  11. elseif Pojemnosc == '2.0' then -- pojemnosc silnika 2.0
  12. setVehicleHandling(veh,"maxVelocity",fastpoj+35)
  13. setVehicleHandling(veh,"engineAcceleration",fastmax+2)
  14. elseif Pojemnosc == '2.2' then -- pojemnosc silnika 2.2
  15. setVehicleHandling(veh,"maxVelocity",fastpoj+45)
  16. setVehicleHandling(veh,"engineAcceleration",fastmax+4)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement