Tommy’s Emergency Lighting System
A highly configurable ELS system, written because we wanted ELS on our server, but the currently available ELS scripts out their run high MS & don’t have certain features which could only be coded in by a developer. So I decided to create this from scratch.
I decided to get away from all the random keybinds that most ELS systems have, all keybinds can be configured, however in the default state, ELS works as follows: 1-6 control siren tones, sirens will only blip until stage/code 3 mode is active. 7-9 are manual overrides for the lighting stages, 0 is the takedown light, - & + are down and up the different patterns. You can configure which extras turn on during each stage, you can even use warning lights as takedowns for example (shown in video) or vice versa. You can configure different pattern sets per vehicle, as well as configure how the UI displays with each extra. Patterns are not per stage but rather are per vehicle. The client and server lua files are encrypted, however the NUI (sounds, html, css) and configuration are not.
Features
- Highly Configurable
- Up to six siren tones (can be server sided as well)
- Pattern Sync between vehicles (enabled with config)
- Speed based patterns (enabled with config) (Faster you go the faster your lights flash)
- Highly optimized (relative to other popular ELS scripts) (I’m activley working on more optimizations)
- New Environmental Light System (Can be completely edited in the configuration) (Only draws one light per car, and colors the light by choosing the most prominent color out of the currently activated lights.)
- Repairing the vehicle or spawning a car will not have extras pop up everywhere.
- Responsive & Modern UI
Escrow Encrypted: Yes
Requirements: None
Demo Video
ELS In-Game UI
The UI files are not encrypted so feel free to make any changes you wish, what extras display on the UI is also configurable per pattern-set.
Server Sided Sirens
This system makes it really easy to configure different sirens for different vehicles, as well as just having server sided sirens in general. An example VCF file configuration is provided in the docs, utilizing server-sided sirens from Kwoks’s free SAS script.
Resmon Usage:
As far as ELS goes, having 0.62 on resmon with 6 active vehicles right next to eachother is a great number in my opinion. Along with that I am still working to add optimizations and fix any bugs that may be found.
Known Bugs:
- Unknown exact cause but sometimes after a few hours of RP on my server I’ve found some AI cars with ELS toggling extras + environmental lighting. This has been the most visually hilarious bug.
- Rarley vehicles have had a ghost stock GTA siren when in Code 3.
To-Do:
- Optimize RPC Events
- Add NetID checks for optimization and no NetID warning in console.
- Tutorial Video
Code is accessible | Partial (NUI & Config) |
Subscription-based | No |
Lines (approximately) | 1300 |
Requirements | OneSync (Has only been tested with OneSync enabled) |
Support | Yes |