simpleGearbox

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

Play 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 :wink:

UPDATES:
2022-04-14 Critical fix (fixing my stupid mistake)

7 Likes

Very cool, I will test it thanks to share it!

Update:
2022-04-14 Critical fix (fixing my stupid mistake). Script didn’t work after death/knock/character change