Skip to content

Configuration

Server defaults, custom siren packs, fleet-wide references, the render constants, and the data.json schema a vehicle developer needs to ship a configured car.

Vehicles are configured in game, in the Editor — LEDs, patterns, rules and sirens are all set there, and Save writes them to one data.json at the resource root, keyed by model name.

This page is the rest: the settings an operator sets once for the whole server, and what a vehicle developer needs to ship a car that arrives already configured.

Server defaults

An admin with tlib.admin saves their display settings as the server-wide fallback through /tls → Set as Server Defaults. They become top-level keys in data.json, and a player's own setting always wins.

SettingDefaultRangeDescription
envQuality40 – 4Environmental lighting (OFF / Low / Medium / High / Smart)
lightingQuality40 – 4LED render pipeline quality
hudVisibletruebooleanHUD visibility fallback
hudLayout—stringDefault HUD layout name
autoCalibfalsebooleanWhether auto-calibration runs periodically for clients who opted in
paRange2510 – 100Default PA mic range, metres. The bounds and this default are yours — see PA mic range and voice presets. A value outside them is rejected with a console warning
paPreset"police"enumAny key of TLS_PA_SUBMIX_PRESETS; ships "police", "fire", "clean" and takes your own. Anything else is rejected with a console warning

Custom siren packs

tLS must know which audio bank each SoundSet belongs to before it can play it. It already knows its own pack, WM-ServerSirens and OISS. Every other pack needs a mapping. Without one the sirens are silent, or audible only while another resource happens to have that bank loaded — which reads as a pack that works sometimes.

Packs that ship a manifest

Declare it in the pack's fxmanifest.lua

lua
tls_siren_pack 'tls_sirens.json'
files { 'tls_sirens.json' }

Create the mapping file

your-siren-pack/tls_sirens.json

json
{
  "soundsets": {
    "MYPACK_SOUNDSET": "DLC_MYPACK\\SIRENS",
    "MYPACK_SOUNDSET_TWO": "DLC_MYPACK\\SIRENS_TWO"
  }
}
  • Each key is the SoundSet name you type into the editor
  • Each value is the bank path you would pass to RequestScriptAudioBank
  • In JSON a backslash is \\, though \\\\ and / also work
  • A bare object without the "soundsets" wrapper is accepted

Reference it in the editor

/tlsedit → Sirens → set Server Sound Ref to the SoundSet name and Server Sound to the sound within it.

Start order does not matter, and a pack started mid-session needs no restart.

Packs that ship no manifest

Most existing packs, LG Mods included, carry no tls_siren_pack metadata. Map their SoundSets yourself rather than editing someone else's resource.

tLS/siren_packs.json

json
{
  "soundsets": {
    "LGMODS_MEGASIREN_SOUNDSET": "DLC_LGMODS\\MEGASIREN"
  }
}

Same shape, same escaping leniency, optional. An entry here overrides the pack's own; built-in SoundSets cannot be overridden from either source. Then, in the server console:

tls_reload_siren_packs

Rules and limits

A pack that loads prints Siren pack '<resource>': registered N SoundSets.

RuleIf you break it
The file must exist and be valid JSONtLS names the resource and file; that pack's sirens do not load
SoundSet names ≤128 chars, bank paths ≤160The entry is ignored and counted in an "ignored N malformed entries" message
Maximum 256 SoundSets per packEntries past the limit are ignored
You cannot override a built-in SoundSetThe entry is ignored, and tLS says which one
Two packs claiming one SoundSetFirst registered keeps it; tLS names both resources

Can I drop my own mp3 or wav files in a folder?

Not today, and it is worth being exact about why. Siren tones are game audio: a tone resolves to a sound name plus a SoundSet, and tLS plays it with PlaySoundFromEntity, which can only reach a sound the engine has already loaded from a dat54 bank. There is no code path in tLS that plays a loose audio file as a siren — the only file-based audio it has is the HUD/key feedback in layouts/sounds/*.ogg, which is NUI audio and not positional.

So a tone of your own means putting it in a bank. Two routes, both real today:

RouteWhat it involves
Rebuild tLS's own bankReplace audio/dlc_tls/*.awc and audio/data/tls.dat54.* with a set built by a dat54 tool such as SirenSharp, keeping the sound names your configs use
Use someone else's packInstall any siren pack that ships a bank, map its SoundSet in siren_packs.json, and point the tone's Server Sound Ref at it

A plain mp3/wav folder would be a new feature rather than a setting — it needs tLS to build a bank, or to play the file through another path entirely. It is on the list; it is not something a config line can switch on.

Cross-vehicle references

Reference patterns, triggers and sirens across similar vehicles instead of duplicating them. Set them up from the editor's reference menu; this is the shape they take on disk. Pattern and trigger refs live inline in the patterns / triggers arrays.

ShapeJSON
One pattern{ "$ref": "police4", "patternName": "Code 3" }
One trigger{ "$ref": "police4", "triggerId": "c5d6e7f8a9b0c1d2" }
All patterns or triggers{ "$ref": "police4", "$all": true }
Siren config (top level)"sirenRef": "police4"
Settings (top level)"settingsRef": "police4"
Behaviour
ResolutionAt access time, never copied
Editing a referenced itemEdits the source vehicle, and every referent follows
ChainingNot supported. A ref pointing at a ref will not resolve
OrphansCleaned up after any save
In the editorImported items show a link icon, items others reference a share icon

Render and bloom constants

The same on every vehicle and client, in config/render_config.lua — plain Lua, outside escrow, editable. A bad value is named in the server console at startup, with the fix.

ConstantDefaultWhat it does
TLS_MAX_LEDS64Hard cap on LEDs rendered at once, per vehicle
TLS_LED_DEFAULT_WIDTH0.044Half-width in metres of an LED whose entry omits sw
TLS_LED_DEFAULT_HEIGHT0.020Half-height in metres of an LED whose entry omits sh
TLS_ARGES_LED_DEFAULT_WIDTH0.037The same, for an Arges spotlight's virtual LED
TLS_ARGES_LED_DEFAULT_HEIGHT0.030The same, for height
TLS_BLOOM_DEFAULT1.25Bloom multiplier a player starts on
TLS_BLOOM_MIN / TLS_BLOOM_MAX0.1 / 3.0The range auto-calibration may move bloom within
TLS_EDITOR_CAMERA_FOV50.0Editor orbit camera FOV in degrees. Never affects what players see
TrapDetail
TLS_MAX_LEDS needs a resource restartA vehicle over the cap renders the first TLS_MAX_LEDS and the rest never light, with the vehicle named in the console. Raising it costs draw calls per vehicle per frame. Author model markers against 64 regardless, per Model-defined LEDs
Keep TLS_BLOOM_MIN ≤ TLS_BLOOM_DEFAULT ≤ TLS_BLOOM_MAXA default outside the bounds is clamped the first time it is read, so nobody sees the look you shipped. Startup validation reports it
TLS_EDITOR_CAMERA_FOV is unboundedAn extreme value gives an unusable viewport with no error

PA mic range and voice presets

Both are yours to change, in config/pa_config.lua — plain Lua, outside escrow, same as the render constants. Every value, including inside the preset table, is checked at startup; a bad one is named in the server console with the fix.

ConstantDefaultWhat it does
TLS_PA_DEFAULT_RANGE25.0Metres a player's PA starts at
TLS_PA_MIN_RANGE / TLS_PA_MAX_RANGE10.0 / 100.0The window a saved range must fall in. The server refuses one outside it
TLS_PA_SUBMIX_PRESETSpolice, fire, cleanThe tones the PA menu offers. Add, remove and rename entries freely
TLS_PA_DEFAULT_PRESET"police"Must name a key of the table above

Each preset is one RadioFx submix, and every field goes straight to the native, so all seven are required and all but label must be numbers:

FieldWhat it does
labelThe PA menu's label. Not audio
modeRadioFx mode. 1 is bandpass — the megaphone character. The others are neither used nor tuned here
freq_low / freq_hiHz. Bottom and top of the band. Lower freq_hi for a tinnier, blown-out horn; raise toward 7000 for clarity
fudge0–1 distortion. 0.5 is a hard-driven speaker, 0.15 barely coloured
rm_mod_freqHz. Ring-modulator rate — the metallic buzz under the voice. Higher is more electronic
rm_mix0–1. How much of that buzz is audible. 0.2 is pronounced
lua
TLS_PA_SUBMIX_PRESETS = {
    airport = {
        label       = "Airport PA",
        mode        = 1,
        freq_low    = 400.0,
        freq_hi     = 5000.0,
        fudge       = 0.25,
        rm_mod_freq = 0.6,
        rm_mix      = 0.1,
    },
}
TrapDetail
Keep MIN ≤ DEFAULT ≤ MAXA default outside the bounds is clamped away the first time a player touches the range control, so the range you shipped is never heard. Startup validation reports it
freq_low must be below freq_hiThe bandpass has no band and the preset is silent
The range is not the metres players experiencepma-voice multiplies the radius by roughly 3× with native audio enabled, so 25 carries about 75 m
Removing a preset that is already the paPreset server defaultA new /tls save naming a preset that is gone is refused and the old value kept. One already in data.json falls back to TLS_PA_DEFAULT_PRESET, named in F8

Vehicle-developer export

Bundle a config inside the vehicle resource and it loads on server start, with nothing for the owner to copy. tLS scans every running resource for the tls_config key and merges the file it names. Server-owner edits in data.json take priority.

Add metadata to fxmanifest.lua

Omit the line entirely if the file is at the default path, tls.json.

lua
tls_config 'data/tls.json'

Create the config file

your-vehicle/data/tls.json

json
{
  "police4": {
    "leds": [],
    "patterns": [],
    "triggers": [],
    "siren": {}
  }
}

Easiest route: configure the vehicle with /tlsedit, then copy its entry out of data.json.

Ship the resource

Owners install it as usual. tLS reports the pickup in the server console on start.

Bundling several vehicles in one pack

One file holds any number of vehicles — the config file is a map keyed by model name, so a four-car pack ships one tls.json with four entries, not four files.

You do not have to assemble it by hand. Export each vehicle to the same resource and the exports merge. Each one reads what that resource already ships, adds or replaces just that vehicle's entry, and leaves every other entry untouched:

json
{
  "police3": { "leds": [], "patterns": [] },
  "police4": { "leds": [], "patterns": [] }
}

So the flow for a pack is: configure a vehicle, export it to the pack resource, repeat. The tls_config line is added to the pack's fxmanifest.lua on the first successful export, so there is nothing to edit by hand.

Removing a vehicle is just as contained — it clears that one entry and leaves the rest of the pack alone.

Discovery parameters

The strings to look for in the server console and your own listeners.

ParameterValue
Metadata keytls_config
Default filenametls.json
Local filedata.json
Log tagLightbar
Chat tag[tLS]
Event prefixtls
Receive eventtls:config_receive

Schema reference

One entry per model name, in these five sections.

SectionHolds
ledsPositions, rotations, sizes, groups, bone attachments
patternsPalettes, frame sequences, timing, playback flags
triggersCompound condition rules with actions
sirenTone slots, airhorn, horn and chirp behaviour, suspend flags
argesSpotlight props. Not available in this build; existing entries are preserved

Vehicles authored with model LED markers can omit leds. An explicit leds array, including [], always overrides model discovery.

LED entry

json
{
  "id": "a3f1b2c4d5e6f7a8",
  "name": "LBF1",
  "x": 0.1, "y": 0.5, "z": 0.7,
  "yaw": 0, "pitch": 0, "roll": 0,
  "sw": 0.044, "sh": 0.02,
  "side": 1,
  "bone": "siren1",
  "groups": ["Right", "Front"]
}
FieldTypeNotes
idstringStable identity patterns target: an editor UUID or a tls_led_NNN marker ID
x, y, znumberLocal offset, relative to bone if set, otherwise the chassis
yaw, pitch, rollnumberDegrees
sw, shnumberSurface half-width and half-height, metres
sidenumberLegacy. 1 Right, 2 Left, 3 Center. Nothing reads it at runtime — use groups
bonestringOptional vehicle bone name
groupsstring[]Display and filter tags
shapestring"circle", or omit for a rectangle
bloomstring"corona", "both", or omit for sprite-only
extranumberGTA extra ID. The LED renders only when that extra is enabled

Pattern entry

json
{
  "name": "Code 3",
  "fps": 10,
  "colors": [
    { "r": 255, "g": 0, "b": 0, "a": 1.0, "name": "Red" },
    { "r": 0, "g": 120, "b": 255, "a": 1.0, "name": "Blue" }
  ],
  "frames": [
    {
      "cells": { "a3f1b2c4d5e6f7a8": 1, "b4e2c3d5f6a7b8c9": 2 },
      "dimCells": { "a3f1b2c4d5e6f7a8": true },
      "duration": 1
    }
  ],
  "triggerOnly": false,
  "syncNear": false,
  "useEmergencyLights": false,
  "useHighBeams": false,
  "livery": 0,
  "modkit": 1,
  "extras": [{ "id": 3, "enable": true }],
  "mods": [{ "modType": 49, "modIndex": 0 }]
}
FieldTypeNotes
fpsnumber1–30. The editor clamps to that range
cellsobjectLED ID → 1-based colour index. 0 is off
dimCellsobjectLED ID → true to interpolate smoothly into the next frame
durationnumberTicks at the pattern's fps
triggerOnlybooleanSkipped by 9/0 cycling, still usable by trigger actions
syncNearbooleanSync the frame index across clients from the server clock
useEmergencyLightsbooleanHold GTA's native emergency-lights flag while playing
useHighBeamsbooleanHold high beams while playing
liverynumberRestrict to a livery index. Omit for any
modkitnumberModkit applied while active. Omit to leave the vehicle's alone
extrasarray{ "id": 1–12, "enable": true|false } — extras forced on or off while active
modsarray{ "modType": 0–49, "modIndex": number, "customTires": boolean }. modIndex: -1 is stock

modkit, extras and mods are restored when the pattern stops, by the owning client only.

Trigger entry

json
{
  "id": "c5d6e7f8a9b0c1d2",
  "conditions": ["brake", "speed_30"],
  "negated": [false, false],
  "operator": "and",
  "enabled": true,
  "actions": [{ "type": "pattern_overlay", "patternName": "Brake Warning" }]
}
FieldTypeNotes
idstring16-char hex UUID. Trigger refs target it
conditionsstring[]See Editor → Condition reference
negatedboolean[]Parallel to conditions. true flips that condition
operatorstring"and" or "or"
actionsobject[]See Editor → Action types
enabledbooleanIgnored when false

Legacy triggers shaped { trigger: "brake", patternName: "..." } auto-migrate on load.

Siren config

json
{
  "tones": [
    {
      "name": "Wail",
      "sound": "VEHICLES_HORNS_SIREN_1",
      "serverSound": "", "serverSoundRef": "",
      "rumblerSound": "", "rumblerServerSound": "", "rumblerServerSoundRef": "",
      "enabled": true,
      "triggerOnly": false
    }
  ],
  "airhorn": "SIRENS_AIRHORN",
  "serverAirhorn": "", "serverAirhornRef": "",
  "serverAirhornRumbler": "", "serverAirhornRumblerRef": "",
  "hornInterrupt": true,
  "parkKill": true,
  "useNormalHorn": true,
  "hornProgrammable": false,
  "lightsSuspendTA": true,
  "lightsSuspendTakedown": true,
  "chirpTone": 1,
  "chirpByCode": false,
  "noUserControls": false,
  "disabledExtras": []
}

Up to 8 entries in tones[]. Keys 1–5 jump straight to a slot; R cycles all of them.

FieldTypeDefaultNotes
namestring—Shown in the HUD and the editor
soundstring—Vanilla GTA sound string, e.g. VEHICLES_HORNS_SIREN_1
serverSoundstring""Sound name inside a server-bundled SoundSet
serverSoundRefstring""The SoundSet it lives in. Both are required, or it falls back
rumblerSoundstring""Vanilla sound while the rumbler is on. Main siren only
rumblerServerSound / rumblerServerSoundRefstring""Server-bundled rumbler sound and its SoundSet
enabledbooleantrueA disabled slot is skipped by every lookup
triggerOnlybooleanfalseSkipped by R, the tone keys and cycling. Rules and exports still reach it

Airhorn, horn and vehicle behaviour:

FieldTypeDefaultNotes
airhornstringSIRENS_AIRHORNVanilla airhorn sound
serverAirhorn / serverAirhornRefstring""Server-bundled airhorn sound and its SoundSet
serverAirhornRumbler / serverAirhornRumblerRefstring""The same, while the rumbler is on
hornInterruptbooleantrueMain siren pauses while the airhorn plays
useNormalHornbooleantrueE plays the native horn with lights off. false = airhorn always
hornProgrammablebooleanfalseSuppress the default horn audio and the interrupt; rules drive the horn
parkKillbooleantrueSirens stop on driver exit and park_kill fires
lightsSuspendTAbooleantrueTraffic advisor suspends while lights are on
lightsSuspendTakedownbooleantrueTakedown suspends while lights are on
chirpTonenumber1Tone slot the park chirp plays
chirpByCodebooleanfalsetrue holds the tone for the full chirp; false repeats 75–125 ms blips
paEnabledbooleantruefalse disables the PA mic on this vehicle
noUserControlsbooleanfalseDisables every tLS keybind. GTA's own horn, radio wheel and cinematic camera stay available
disabledExtrasnumber[][]Extra IDs (1–12) forced off regardless of the vehicle's default. This is also the answer for a ULC/LVC car whose extras keep firing
liveryProfilesobject[]—Per-livery sound overrides, below

Server-sided sounds play when configured and the player has Server-sided Sirens on; otherwise the vanilla sound does. Third-party SoundSets also need an audio bank mapping.

Per-livery siren sounds

json
"liveryProfiles": [
  {
    "livery": 0,
    "tones": [
      { "serverSound": "police_wail", "serverSoundRef": "POLICE_SOUNDSET" },
      { "serverSound": "police_yelp", "serverSoundRef": "POLICE_SOUNDSET" }
    ],
    "serverAirhorn": "police_horn",
    "serverAirhornRef": "POLICE_SOUNDSET"
  }
]

One entry per zero-based native livery index. Tone entries line up with the existing default slots, and an empty object inherits one. A profile cannot add, reorder or rename slots, or change eligibility or vehicle behaviour.

Overridable per tonesound, serverSound, serverSoundRef, rumblerSound, rumblerServerSound, rumblerServerSoundRef
Also acceptedairhorn, serverAirhorn, serverAirhornRef, serverAirhornRumbler, serverAirhornRumblerRef
Missing fieldInherits. An empty string clears an optional sound and restores the usual fallback
sirenRefInherits the default sounds and the profile collection, before matching the receiving vehicle's livery

Size limits

Enforced on every config the server accepts, and on the catalogue.

LimitValueOn exceeding it
Frames per pattern512Frames past 512 are trimmed and the pattern kept. The console names the vehicle and pattern
Encoded size, one vehicle512 KBThe save is refused and the previous config stays. The console prints the actual size

Still stuck? Support can answer it directly.

Was this page helpful?