MenyooSP icon indicating copy to clipboard operation
MenyooSP copied to clipboard

Incorrect vehicle max speed

Open TheFlash3113 opened this issue 2 years ago • 1 comments

I have a handling mod (handling.meta) installed in the mods folder. Works perfectly without Menyoo.

With Menyoo the top speed of cars entered is incorrect. In my handling.meta, Adder is set to 407 km/h. But under vehicle options in Menyoo it says 182. Definitely not ideal. A fix would be amazing.

Is Menyoo actually getting the top speeds of vehicles from somewhere?

TheFlash3113 avatar Feb 26 '23 06:02 TheFlash3113

The max speed is determined by using a native called GET_VEHICLE_MODEL_ESTIMATED_MAX_SPEED(vehicle model hash).

Please see the code here: https://github.com/MAFINS/MenyooSP/blob/master/Solution/source/Submenus/VehicleModShop.cpp#L1776

Since it's getting the estimated maximum speed of the vehicle model and not the actual maximum speed, that is likely where the discrepancy lies.

EDIT: Also note that that native returns a value in meters/second, not kilometers/hour or miles/hour. 182 m/s would be 655.2 km/h.

nomakewan avatar Feb 26 '23 06:02 nomakewan