Combined Engine Toggle and Leave Engine Running useful resource for FiveM.

Intro

Hello, that is my first sort-of script, so if there’s any options to optimize the code or any options you’d like added, please be at liberty to let me know! :slight_smile:
It’s meant for extra critical RP servers.

I needed to discover a useful resource for my server that may drive the participant to make use of their scroll wheel to toggle the engine on and off to make use of automobiles, in addition to leaving the engine operating in the event that they obtained out of the automotive with it operating. I searched all around the boards for such a script and couldn’t discover it, so I made one myself.

Useful resource

The useful resource limits the participant to the next:

  • Can’t begin engine with ‘W’ key.
  • Disables auto-start when a participant enters a car or when car is turned off.
  • Toggle engine state with Scrollwheel Up solely (editable in shopper.lua).
  • Engine stays on after exiting the car.

As a result of how primary the script is, when you get into and out of the car too quick the engine will flip off, I’ll look into this over the subsequent few days to see what I can do about it.

Obtain the information from my GitHub right here: https://github.com/aclfxdev/CET-LER



Looking for paid scripts? Click here