Skip to content

Installation

Prerequisites, load order, admin ACE, your first lit vehicle, and the shipped file layout.

Prerequisites

RequirementDetail
FiveMOneSync enabled (Infinity or Legacy). State syncs through entity state bags
tLib1.0 or newer, free — download
Lua5.4, already declared in the manifest
Node22, already declared in the manifest
pma-voiceOptional. Only the PA mic needs it

Install

Extract the resource

Extract the zip on your own machine, then upload the folder. Do not upload the zip and unzip it on the server — a host panel's or SFTP client's unzip is what produces a tLS/tLS nesting, a half-written tree, or a folder FiveM refuses to start, and the error it then prints names the resource rather than the upload.

The folder in resources/ must be named exactly tLS — no spaces, no -main suffix.

Start tLib before tLS

server.cfg

ini
ensure tLib
ensure tLS

Grant the admin ACE

ini
add_ace group.admin tlib.admin allow

Grants /tlsedit, Set as Server Defaults in /tls, and the editor button.

Start the server

tLS creates data.json at the resource root on first run.

Confirmed when /tls opens in game and the console shows no tLib version warning.

Your first lit vehicle

Five minutes, on a stock vehicle. You need the tlib.admin ACE and a vehicle with siren1…sirenN bones — police4 has them.

Spawn police4 and get in

Any seat.

Run /tlsedit

The editor opens on the Lights tab with an empty LED list.

Click Auto-create LEDs

tLS reads the vehicle's model for its lenses, falling back to its siren bones, and drops the LEDs it finds — grouped and sided. They appear in the sidebar and on the lightbar.

Add a pattern

Patterns tab → Add Pattern. Set 10 FPS, add Red and Blue to the palette, paint alternating columns.

Press Enter to save

The config writes to data.json and the editor closes.

Drive it

KeyDoes
QLights on and off
RSiren burst while held
9 / 0Step through patterns

It works if Q lights the vehicle for you and for a player standing next to it. Lit for you only means state is not replicating — check OneSync in Troubleshooting. Q doing nothing means the vehicle has no LEDs saved; every keybind needs at least one.

From here, the Editor covers placing LEDs by hand, building rules and configuring sirens.

Moving a fleet off ULC, LVC or another ELS

There is no importer and there is no converter. tLS reads nothing out of a ULC, LVC or ELS configuration and nothing in it knows what a ULC stage is, so every vehicle is rebuilt once in /tlsedit. That is the whole migration; no tool is coming to shorten it.

Per vehicle, in this order:

  1. Stop the pack's own lighting script on that vehicle first. Two systems writing the same lights and extras fight every frame and the last writer wins, so a half-migrated car reads as tLS being broken — My ULC / LVC vehicle still fires its own extras is that symptom, and siren.disabledExtras the mop-up for extras the pack leaves lit
  2. /tlsedit → Lights → Auto-create LEDs. The LEDs come from the vehicle's own model, and its carcols.meta siren set arrives with them as a Stock pattern
  3. Correct what the generator placed wrong, then add patterns, trigger rules and sirens
  4. On the next car, borrow rather than rebuild. Cross-vehicle references pull a pattern, trigger, siren or settings block off a model you have already done — $all takes every one at once — and the Marketplace tab carries LED configs and whole vehicle setups other servers published, matched to the model

Budget about an hour for your first vehicle and roughly 15 minutes each after that. The first one is where you learn the editor; step 4 is what makes the rest quick.

Version compatibility

tLSRequires tLibNotes
1.0.x1.0 or newerEnforced at load by tlib_min_version in the manifest

On a version warning, update tLib — not tLS.

File layout

tLS
fxmanifest.lua
shared
utils.lua
model_fingerprint.lua
sh_config_baseline.lua
sh_config_check.lua
audio_banks.lua
siren_profiles.lua
led_math.lua
config
render_config.lua
pa_config.lua
server
sv_version.lua
sv_configs.lua
sv_relay.lua
dist
client
cl_env.lua
cl_textures.lua
cl_renderer.lua
cl_model_leds.lua
cl_model_fingerprint.lua
cl_siren.lua
cl_state_sync.lua
cl_triggers.lua
cl_lights.lua
cl_arges.lua
cl_pa.lua
cl_hud.lua
cl_marketplace.lua
cl_input.lua
cl_deck.lua
cl_editor.lua
flare.png
led.png
ui
layouts
audio
stream
PathPurpose
shared/UUIDs, model fingerprints, audio banks, siren profiles, LED geometry, and the two scripts that validate config/
config/render_config.luaLED cap and bloom bounds. Outside escrow — editable
config/pa_config.luaPA presets. Inside escrow
server/dist/Bundled server logic
server/sv_configs.luaDiscovery, ref-edit relays, server defaults
server/sv_relay.luaState bag ownership and remote state sync
client/cl_lights.luaPattern playback and stage state
client/cl_triggers.luaTrigger condition evaluation
client/cl_siren.luaSiren tone playback
client/cl_model_leds.luaModel-defined LED marker discovery
client/cl_arges.luaArges spotlight props
client/cl_pa.luaPA mic (pma-voice)
client/cl_env.luaStartup environment line and tls_diag
client/cl_hud.luaHUD overlay and the /tls dialog
client/cl_marketplace.luaMarketplace tab
client/cl_input.luaKeybinds, commands, park-kill thread
client/cl_deck.luaStream Deck key feed and button dispatch
client/cl_editor.luaNUI editor bridge
client/ui/Built NUI assets
layouts/HUD layouts, auto-discovered
audio/Custom siren sounds (awc + dat54)
stream/Arges props, Legacy (gen8). Carries the .ytyp the manifest names

data.json is written on first boot, not shipped. A copy missing anything else is an incomplete download.

Optional: help us fix tLS

tLS does not report its own faults to us. When it throws on your server the error sits in your console, and unless someone opens a ticket we never learn it happened — which means the bugs nobody reports are the ones that stay.

One line opts in, in server.cfg above ensure tLib:

txt
set tlib_telemetry 1

That sends errors, warnings, renderer crashes and slow-operation outliers from our own code. No IP, no licence key, no server name, no player names or identifiers, and <resource>_diag output is never included. tlib_telemetry_status in the console shows what is on and what decided it.

It is off unless you set it, nothing is gated behind it, and Diagnostics is the full account of what is and is not sent.

Still stuck? Support can answer it directly.

Was this page helpful?