Good day!
Many people know that some Handling parameters do not work in RageMp, such as fInitialDriveMaxFlatVel, fInitialDriveForce and others (to be honest, I don't remember what didn't work), however, a long time ago I found a solution to this problem, perhaps someone has already found it, well done! And I decided to post the simplest fix of these parameters, including corrections of values, where you need to multiply or divide some parameters by values so that it is 1 in 1, as in the handling file. I will send two versions of the code for the convenience of JS and TS.
How to use?
The script exports several functions
setHandling(veh, key, value) - Sets the parameter, the values can be set as in the
getHandling(veh, key) file - Gets the parameter, the values are almost the same as in the
fixHandling(veh) file - Fix the parameters that supposedly do not work (As simple as possible)
The parameter is set not on the car model, but on its unique identifier - handle.
If the machine disappears from the drawing radius, you will delete it, respawn it, etc., it will have the standard handling
Important: Script for the client side!