Configuration
hm_ELSPlus offers a wide range of configuration options, controlled through several files:
1. General settings (main.lua)
Section titled “1. General settings (main.lua)”In config/main.lua you find the most important global settings:
- ELSPlus.GroupDefaults: Default values for new vehicle configs (flash patterns, colours).
- ELSPlus.Keys: Key bindings (by default: emergency lights on Q, sirens on 1-3).
- ELSPlus.Passenger: Enable/disable control by the front passenger.
- ELSPlus.Skins: Definition of the available HUD control panel skins.
2. Siren system (sirens.lua)
Section titled “2. Siren system (sirens.lua)”In config/sirens.lua you choose between the available systems:
- WM (WheelMod / WM-Sirens): Standard FiveM sirens or modded soundsets. (See the installation guide for the tutorial video by FiveM Schritt-Für-Schritt Tutorials)
- ServerSided (OISS): Server-side streamed audio files with a preset system — better range and quality.
Short WM example:
ELSPlus.SirenSystem = "WM"ELSPlus.WM = { defaultTones = { [1]="SIREN_ALPHA", [2]="SIREN_BRAVO", [3]="SIREN_CHARLIE" }, soundset = "DLC_WMSIRENS_SOUNDSET", audioBank = "DLC_WMSIRENS\\SIRENPACK_ONE"}Short OISS example (preset system):
ELSPlus.SirenSystem = "ServerSided"ELSPlus.DefaultPreset = "LSPD Modern"
ELSPlus.SirenPresets = { ["LSPD Modern"] = { soundset = "oiss_ssa_vehaud_lspd_new_soundset", audioBank = "DLC_SERVERSIDEAUDIO\\OISS_SSA_VEHAUD_LSPD_NEW", tones = { "oiss_ssa_vehaud_lspd_new_siren_adam", "oiss_ssa_vehaud_lspd_new_siren_boy", "oiss_ssa_vehaud_lspd_new_siren_charles", }, horn = "oiss_ssa_vehaud_lspd_new_horn", }, -- more presets: LSSD, BCSO, SAHP, NOOSE, FIB, LSFD, ...}Note: tone names are department-specific (e.g. lspd_new_siren_adam, not siren_adam). audioBank is a string, not a table. ELSPlus.ServerSided is generated automatically from the DefaultPreset (backwards compatibility).
Per vehicle you can set siren.wmTones, siren.tonePresets and siren.range in the JSON (details under Server dev / extending).
3. Flash patterns and colours (patterns.lua)
Section titled “3. Flash patterns and colours (patterns.lua)”All flash patterns and their colours are defined here:
- ELSPlus.PatternStepMs: The base beat of the flashers in milliseconds.
- ELSPlus.Colors: RGB values for the env lights (red, blue, yellow, white, green).
4. Attachments (anbauteile.lua)
Section titled “4. Attachments (anbauteile.lua)”This holds the templates of the included beacons, which can be mounted on any vehicle.
5. In-game permission management (rechte.json)
Section titled “5. In-game permission management (rechte.json)”This file is managed automatically by the system when you use the Rechte (permissions) tab in the in-game editor.
- What is saved?: The system saves the player identifiers (e.g.
license:xxx), the name and who granted access. - Advantage: You do not have to edit
server.cfgand restart the server for every new team member. - Manual intervention: You can also delete entries in
rechte.jsonmanually to revoke access.
6. Vehicle configs (config/fahrzeuge/*.json)
Section titled “6. Vehicle configs (config/fahrzeuge/*.json)”This is where ELS vehicle configurations with all functions are stored (e.g. primary, secondary, scene, matrix, estelle).
Important fields:
spawnName: vehicle namelayout: assigned HUD layoutnoFlash: speed camera protection for emergency vehiclessiren.wmTones: siren tones per vehiclesiren.soundset: soundset override for ServerSided
7. Attachment configs (config/attachments/*.json)
Section titled “7. Attachment configs (config/attachments/*.json)”For non-ELS vehicles, separate JSON files are saved (e.g. per model or per licence plate).
Important fields:
type: alwaysnon_elsanbauteil: template fromanbauteile.luaoffset/rot: position and rotation- optional
plate: vehicle-specific assignment
8. Layouts (config/layouts/)
Section titled “8. Layouts (config/layouts/)”Saved HUD layouts are stored here automatically:
_index.jsonfor the overview- individual layout files as
*.json
9. NoFlash and speed camera integration
Section titled “9. NoFlash and speed camera integration”NoFlash is set per vehicle, not globally.
- Protection is active with
noFlash: trueand emergency lights on. - External scripts should use the exports (see the
Server dev / extendingpage).