Hello, Guest

By registering with us, you'll be able to discuss, share and private message with other members of our community.
What's new

SCRIPT Fix Vehicle Handling

Alexalsaud

Administrative
Staff member
Admin
Joined
Aug 5, 2024
Messages
337
ICoins
1,501

Fix Vehicle Handling


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!

 

Attachments

Back
Top