Source code:
https://shorturl.at/9i8s5
Install in modloader.
Features:
- Controller support (GInput required)
- Keyboard Support
- Configurable Key maps
- Can edit physics from handling.ini and reload in real time.
- Compatible in both Single Player and SAMP
Behavior:
When inside a vehicle and the mapped key is pressed, the script does the following:
- Make a backup of the vehicle's handling in memory
- Inject values inside the respective offsets.
- If pressing the key to restore the handling, the script re-writes the backup values in the respective offsets
- If the vehicle changes, the new backup values are written.
Requirements:
CLEO 5.0.3 or higher.
A list of keycodes has been provided in order to map the keys.
Joypad drift activate: Left Bumper
Keyboard drift activate: shift
Thanks to OrionSR, Mirian and Seemann for the support provided by the Sanny Builder discord group.
CHANGELOG 27/06/2025
- Fixed issue where the drive_type wasn't restored on the global pointer CVehicle when the vehicle was swapped without resetting drift.
CHANGELOG 4/07/2025
- Drift is applied only when keeping the mapped button pressed to give the user more freedom. |