Dretax Posted November 5, 2017 Posted November 5, 2017 I don't exactly know how conversion would go for a vehicles maxspeed in miles / hour. Software Engineer, available for hire. http://github.com/dretax
Unknown-Guy Posted November 5, 2017 Posted November 5, 2017 (edited) kmh = math.floor(actualspeed*180) -- Kilometer per hour mph = math.floor(actualspeed * 111.847) -- Miles per hour Edited November 5, 2017 by Unknown-guy Are you a developer ? Contact me right now to get a chance to work on our project.
Dretax Posted November 5, 2017 Author Posted November 5, 2017 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 IIYAMA Posted November 5, 2017 Moderators Posted November 5, 2017 https://wiki.multitheftauto.com/wiki/GetVehicleHandling or https://wiki.multitheftauto.com/wiki/GetModelHandling or https://wiki.multitheftauto.com/wiki/GetOriginalHandling At key/index. maxVelocity Combine with the post of the @Unknown-guy. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Dretax Posted November 6, 2017 Author Posted November 6, 2017 On 2017. 11. 05. at 19:01, IIYAMA said: https://wiki.multitheftauto.com/wiki/GetVehicleHandling or https://wiki.multitheftauto.com/wiki/GetModelHandling or https://wiki.multitheftauto.com/wiki/GetOriginalHandling At key/index. maxVelocity Combine with the post of the @Unknown-guy. 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 IIYAMA Posted November 6, 2017 Moderators Posted November 6, 2017 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 Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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