K4stic Posted June 21, 2013 Share Posted June 21, 2013 How get from one Vehicle the max speed that it can reach? and calculate for it RPM Link to comment
Moderators IIYAMA Posted June 21, 2013 Moderators Share Posted June 21, 2013 speed = getVehicleHandling ( theVehicle )["maxVelocity"] RPM?????? Link to comment
bandi94 Posted June 21, 2013 Share Posted June 21, 2013 Here is a part from my first RPM it is public on communit you can download it and see how it's working. shifting up is around 6000-7000 rpm , and shifting down is around 1000-1500 RPM. https://community.multitheftauto.com/index.php?p=resources&s=details&id=2490 local rpm local rp local gear function rpmgear() if(speed2==0) then gear = "N" gear2= "N" return 0 elseif (speed2 <= 40) then gear = 1 gear2=1 rp = speed2 return rp*162 elseif (speed2 <=80 ) then gear = 2 gear2=2 rp = speed2-30 return rp* 132 elseif (speed2 <=120 ) then gear = 3 gear2=3 rp = speed2-65 return rp* 118 elseif (speed2 <=160 ) then gear = 4 gear2=4 rp =speed2-110 return rp* 125 elseif (speed2 <=200 ) then gear = 5 gear2=5 rp =speed2-130 return rp* 92 elseif (speed2 >=200 ) then gear = 6 gear2=6 rp =speed2-130 if ( speed2>=250) then return 6000 else return rp* 50 end end end Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now