TrevorBarns / luxart-vehicle-control

A siren / (non-els) emergency lights controller for FiveM.
https://www.luxartengineering.com/
GNU General Public License v3.0
137 stars 58 forks source link

[BUG] Unable to remove the controls for hazards and turn signals #89

Closed WildFyr16 closed 8 months ago

WildFyr16 commented 8 months ago

Installed Version

(Base and Plugin if applicable) base: v3.2.9 - extra integration: v1.2.1

Describe the bug

There is no native way to remove the controls for the turn signals and hazards. I have a vehicle HUD script that also adds blinkers and turns signals with more functionality and sounds, but when I try to comment out the controls in LVC it bugs out and things like the V key start to activate the hazards and another button we have yet to locate fully to turn on the left hand turn signal. I think it would be nice to have a "Use LVC Turn Signals and Hazards" option in the settings.lua to just outright disable the turn signals and hazards if the server wants.

To Reproduce

Steps to reproduce the behavior: First disable the Turn Signal and Hazards button controls in the settings Restart your server and press V (at least for our server) in a car and see your hazards come on.

Expected behavior

The ability to fully disable the turn signals and hazards would be super helpful to server developers

Screenshots

NULL

Additional context

NULL

TrevorBarns commented 8 months ago

How did you "disable the turn signal and hazard button controls in the settings"?

Please post your modifications or changes to the resource.

WildFyr16 commented 8 months ago

So I found my issue, a very basic one at that... forgot a few formatting things in the code. I created a PR for this so other users may use or can be merged right in here