What is this?
simpleGearbox - resource for FiveM servers that implements a simple gearbox for cars, excluding automatic switching between “forward” and “reverse”.
Usage
The resource does not provide any commands, just install it and use
How to install
-
Place the simpleGearbox folder inside your server’s resources folder
-
Add resource to your server config file or run manually from console: ensure simpleGearbox
How it works
If you are moving forward and press the brake button, the vehicle will stop and not reverse. In order for the transport to start moving backward, you must press the button again.
Demo
Download
Github: simpleGearbox
Support
I’m still studying the FiveM documentation and my code may not be optimal. I will refactor it when I find the necessary methods.
License?
There is no license. For now. Maybe never will be. Open source. Free. Just mention me if you use my resource.
I want to help the community. Let’s do cool stuff
UPDATES:
2022-04-14 Critical fix (fixing my stupid mistake)