Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setElementData(veh,"Pojemnosc:silnika", vehicle["silnik"])
- local fastpoj = getVehicleHandlingProperty(veh,"maxVelocity")
- local fastmax = getVehicleHandlingProperty(veh,"engineAcceleration")
- local Pojemnosc = getElementData(veh,"Pojemnosc:silnika") or "1.4"
- if Pojemnosc == '1.6' then -- pojemnosc silnika 1.6
- setVehicleHandling(veh,"engineAcceleration",fastmax+0.5)
- setVehicleHandling(veh,"maxVelocity",fastpoj+25)
- elseif Pojemnosc == '1.8' then -- pojemnosc silnika 1.8
- setVehicleHandling(veh,"maxVelocity",fastpoj+30)
- setVehicleHandling(veh,"engineAcceleration",fastmax+1)
- elseif Pojemnosc == '2.0' then -- pojemnosc silnika 2.0
- setVehicleHandling(veh,"maxVelocity",fastpoj+35)
- setVehicleHandling(veh,"engineAcceleration",fastmax+2)
- elseif Pojemnosc == '2.2' then -- pojemnosc silnika 2.2
- setVehicleHandling(veh,"maxVelocity",fastpoj+45)
- setVehicleHandling(veh,"engineAcceleration",fastmax+4)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement