[Free] Ultimate Lighting Controller

Ultimate Lighting Controls

Description

ULC is an all-in-one lighting controller for Non-ELS vehicles in FiveM! It uses the extra-based lighting stages on your vehicles and adds extra automation and improvements to create amazing, realistic, and fully-configurable lighting controls.

Features

  • Easily Configurable
  • Plug and play for vehicle resources
  • Stage Controls
  • Park Patterns
  • Brake Extras
  • Reverse Extras
  • Smart Cruise Lights
  • Horn Extras
  • Resource time: Near 0ms

Preview


Dependencies

baseevents

Download

Getting Started

Documentation

image

IMPORTANT

This resource is intended for use by vehicle developers or vehicles that already have lighting stages via extras, it cannot add park patterns to any random vehicle. The patterns you see in the video above is just an example.

Compatibilty

  • Works with all version of Luxart Vehicle Control, you just need to mute light beeps

:clap:

Code is accessible Yes
Lines (approximately) 1400
Support Yes
29 Likes

really nice work

1 Like

This is gonna be awesome for sure, thank you for releasing this!

1 Like

Nice Work.

  1. Which Car are you using?
  2. It looks like, that my Vehicles doesnt want to do it :smiley:

I will work on it :smiley:

1 Like

I just used an old car I had laying around from a while ago to test.

Only vehicles that have extras with lights can be used with this.

Hopefully developers will start creating vehicles that are shipped with a ULC config file soon!
You can ask developers to setup their vehicles with ULC if they already have lighting extras as well.

If the Car is a Add-On and Non-Els could you share it? Or tell me where you got it from? Dope Car :smiley:

It’s just one we made internally, it’s not really production ready. (No interior, trunk moves without lights)

1 Like

Could we expect features that toggle extras when doors are open and things like that? TYIA

1 Like

Door feature is planned, let me know anything else you like like!

Not actually possible, doors slam shut when extras change.

Fixed.

That’s awesome! For the ulc.lua, if the vehicle resource has multiple different vehicles/setups, can the single resource ulc.lua contain multiple different vehicle entries? The documentation seems to suggest that it can, but didn’t outright show that I can add a comma and then add another vehicle entry. Thanks!

1 Like

Support for that is coming. For now they just have to be added to the config.lua individually.

Update v1.2.0

What’s New

  • ulc.lua can now contain multiple comma-separated configs (useful for packs)
  • Stage Buttons will now always render in all caps
  • Added global (server-wide) toggle for UI
  • You can now disable specified extras whenever a stage is activated

Config Changes

Buttons can now accept a offExtras={} field. Extras specified in this field will be disabled when the button is pressed.
New button structure:

{label = 'LABEL', key = 1, extra = 1, offExtras = {2, 3}}

This is not mandatory.

You do not need to update your existing configs unless you want to use this feature.

Full Changelog: Comparing v1.1.0...v1.2.0 ¡ Flohhhhh/ultimate-lighting-controller ¡ GitHub

i have this script in stalled but i do have a small error im not sure what i missed could anyone help me? the error on my console says this:

[ script:ulc] Error loading ‘ulc.lua’ file. Make sure it is at the root of your resource or in the ‘data’ folder.
[ script:ulc] SCRIPT ERROR: @ulc/server/s_main.lua:196: attempt to call a nil value (global ‘f’)

but i do have the ulc.lua file inside the vehicles data .

Post a picture of your vehicle resource folder so I can see the structure.

Update v1.2.2

What’s New

  • Stage buttons can now have “Linked Extras” that will toggle to match the state of the primary extra

Config Changes

Buttons can now accept a linkedExtras={} field. Extras specified in this field will toggle to match the state of the primary extra when the button is pressed.
New button structure:

{label = 'LABEL', key = 1, extra = 1, linkedExtras = {}, offExtras = {2, 3}}

This is not mandatory.

You do not need to update your existing configs unless you want to use this feature.

Full Changelog: Comparing v1.2.1...v1.2.2 ¡ Flohhhhh/ultimate-lighting-controller ¡ GitHub

1 Like



1 Like

Does this repair the vehicle in order to change extras?

1 Like

Yes, but effect is disabled when doors are open or vehicle is damaged. It seems to work great.

I’m still working on this matter, hopefully I could remove the restriction one day.

Update v1.3.2

What’s New

  • Configurations can now accept multiple names for vehicles that share the same settings
  • Brake extras now function as real brakes, staying on when the vehicle is stopped (optional)
  • Improved loading state awareness, onesync is no longer required and it’s more stable
  • Added reverse extras
  • Steady burns and now de-activate when lights are turned on
  • Un-globbed the fxmanifest
  • Added unused code for reminder beeps (coming soon)

Config Changes

Brake Extra Changes

The brakeExtras section in the config.lua is now empty. The speedThreshold value has been moved to the vehicle configuration. This is backwards compatible, old ulc.lua configurations do not need to be updated.

New format for ulc.lua brake config:

brakeConfig = {
  useBrakes = false,
  speedThreshold = 3,
  brakeExtras = {}
},

If you do not change this, ULC will default to default functionality for the value, which would be the value of 3 above.

Cruise Lights Changes

The steadyBurnsConfig section of the ulc.lua file can now accept a new disableWithLights value.

New format:

steadyBurnConfig = {
  forceOn = false,
  useTime = true,
  disableWithLights = false,
  sbExtras = {1, 2}
},

This is not mandatory. You do not need to update your existing configs unless you want to use this feature.

Reverse Config

The ulc.lua file can now accept a reverseConfig field.
Format:

reverseConfig = {
  useReverse = false,
  reverseExtras = {}
},

This is not mandatory. You do not need to update your existing configs unless you want to use this feature.

Full Changelog: Comparing v1.2.2...v1.3.2 ¡ Flohhhhh/ultimate-lighting-controller ¡ GitHub

There is a fix for the repair limitation pushed to the repository. Download the code directly via zip instead of a release to test it out. Let me know how it goes : D

Note: the fix only applies to some features to save on stability and network performance