Flohhhhh / ultimate-lighting-controller

An all-in-one lighting controller for Non-ELS vehicles in FiveM
https://docs.dwnstr.com/ulc/overview
Other
42 stars 14 forks source link

Exiting then Re-Entering Vehicle Triggers Default Stages to Activate #15

Closed jdean1995 closed 1 year ago

jdean1995 commented 1 year ago

So in this video, I am driving, then parking, (lighting changes controlled via the park mode function). When I am stopped, I toggle my front lights off via a button. I exit the vehicle. When I re-enter the vehicle, all the default stages reactivate. This behavior shouldn't be happening. Entering/exiting the vehicle shouldn't trigger the default stages.

https://github.com/Flohhhhh/ultimate-lighting-controller/assets/143232332/ce4d0abf-bb31-4158-ae96-fcccc86ea3ac

Flohhhhh commented 1 year ago

This must be triggering on enter:

This may actually be fixed in development version because of myVehicle not being reset on exit. Will confirm first.

Issue comes down to Lights being set to false when exiting. Not sure why that's happening though. "Lights onevent triggers whenLightsisfalse`` but game sirens are on, and "Lights on" event triggers default stages

Flohhhhh commented 1 year ago

Appears to be fixed in development version. Will be in next patch. @jdean1995

Flohhhhh commented 1 year ago

Just kidding

Flohhhhh commented 1 year ago

Fixed in next patch.