Jump to content

Get Vehicle's Maxspeed handing in Miles / Hour


Dretax

Recommended Posts

Posted (edited)
kmh = math.floor(actualspeed*180) -- Kilometer per hour

mph = math.floor(actualspeed * 111.847) -- Miles per  hour

 

Edited by Unknown-guy

Are you a developer ? Contact me right now to get a chance to work on our project.

Posted
3 hours ago, Unknown-guy said:

kmh = math.floor(actualspeed*180) -- Kilometer per hour

mph = math.floor(actualspeed * 111.847) -- Miles per  hour

 

Get Vehicle's Maxspeed handing in Miles / Hour

Software Engineer, available for hire.

http://github.com/dretax

  • Moderators
Posted

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted
On 2017. 11. 05. at 19:01, IIYAMA said:

The maxvelocity would return a different value, for 

setVehicleHandling(jarmu, "maxVelocity", 93.5)

max speed i could get is 68 mp/h, which means that your method wouldn't work.

Software Engineer, available for hire.

http://github.com/dretax

  • Moderators
Posted

This is all there is.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...