Configuration
Complete configuration reference for Tommy's Radio — config.lua, framework hooks, zones and channels, codeplugs, every admin panel setting, sounds, and integrations.
Every setting tRadio has, and which of the five places it lives in. Where it lives decides whether it needs a restart.
Where each setting lives
| Source | Contains | Edited in | Applies |
|---|---|---|---|
config/config.lua | Network, auth, Discord, framework, inventory | Text editor | After restart tRadio |
config/sv_functions.lua | Server hooks — access, player names, 911 caller ID | Text editor | After restart tRadio |
config/cl_functions.lua | Client hooks — canTalk, battery, background sound, animations | Text editor | After restart tRadio |
data.json | Zones, channels, codeplugs, alerts, speakers, towers, geo zones, all server settings | Admin panel | Instantly |
layouts/<Model>/ | How each radio model's screen is drawn — see Radio layouts | Text editor | After restart tRadio |
Check the admin panel first. Open it at /tradio → Admin Panel, or in a browser at
http://<your server>:<server port>/tRadio/admin — your FiveM server port, 30120 on a
default install.
Set these three, then stop
adminPasswordanddispatchNacId, or Discord OAuth.141is the demo server's code.- Federation only:
authToken— 20+ random characters. Nothing else reads it. - Custom framework only: the hooks in
config/sv_functions.luaandconfig/cl_functions.lua.
There is no network setting to get right. The panels are reachable on the FiveM server port from the first start.
config.lua
Server and authentication
Config = {
exposeWeb = true,
showDispatchInHub = true,
showAdminInHub = true,
useLegacySocketTransport = false,
hostServerUrl = "", -- satellites only
isSatelliteServer = false,
authToken = "", -- federation only
adminPassword = "", -- empty = generated on first boot
dispatchNacId = "141",
}| Key | Default | Description |
|---|---|---|
exposeWeb | true | Publish the browser panels through tLib. Not needed in game. Required on a federation host |
showDispatchInHub | true | List Dispatch on tLib's hub. Visibility only. Restart required |
showAdminInHub | true | List Radio Admin as a sibling destination. Hidden is not private. Restart required |
useLegacySocketTransport | false | Deprecated since 7.0. Game-client Socket.IO fallback. Needs exposeWeb = true. Leave it false |
hostServerUrl | "" | Satellite-only URL of the federation host, including its tLib mount path |
isSatelliteServer | false | Share a host's radio backend from another game server |
authToken | "" | Federation shared secret, 20+ random characters. Empty means the endpoint answers 401 |
adminPassword | "" | Web admin password. Empty generates one on first boot and writes it to this file. A value set here wins |
dispatchNacId | "141" | Browser dispatch login passphrase, not channel access. Change it |
Public web addressing belongs to tLib, and none of it has to be set — the panels answer on the FiveM server port with no configuration. tlib_http_port and tlib_http_public_url belong to tLib's optional listener; see Reaching the panels in a browser.
Discord authentication
Optional OAuth for both panels. Create an application at the Discord Developer Portal, then add both redirect URIs under OAuth2 → Redirects:
http://203.0.113.10:7777/tRadio/radio/dispatch/auth
http://203.0.113.10:7777/tRadio/admin/auth/callback
Do not type those two — copy them from the admin panel, under Credentials → Discord → Register these in Discord. They are the exact strings this server sends, built from your published address and mount path, which is what makes them right for your install and the example above only an illustration.
Discord matches a redirect URI character for character and refuses anything else with Invalid OAuth2 redirect_uri. That refusal happens at Discord, before the request reaches tRadio, so it appears in no log of ours and the panel cannot report it: a missing /tRadio mount segment or an http where you registered https produces a Discord error page and nothing else.
Config = {
discord = {
authEnabled = true,
clientId = "1284739201847362048",
clientSecret = "<your discord client secret>",
guildId = "938271046582910384",
roles = "938271046582910111,938271046582910222",
adminRoles = "938271046582910333",
redirectUri = "",
},
}| Key | Default | Description |
|---|---|---|
authEnabled | false | Require Discord login for the dispatch panel in a browser. In-game login is separate |
clientId | "" | Developer Portal → General Information |
clientSecret | "" | Developer Portal → OAuth2 |
guildId | "" | Easiest in Admin Panel → Credentials, which lists your servers |
roles | "" | Comma-separated role IDs. "" = any guild member |
adminRoles | "" | "" = no Discord admin access |
botToken | "" | Set from Credentials; never shown back to you |
redirectUri | "" | Override the OAuth origin. "" derives it from tLib's public URL. Only needed behind a reverse proxy |
Store a bot token in Credentials and the page turns every Discord role into a checkbox. Sessions last 24 hours; role changes apply at next login.
When you need a bot token. The browser login never does. The in-game login does; without one, in-game access rests on the tradio.dispatch / tradio.admin ACE permissions alone.
redirectUri must be an origin — https://radio.example.com, not radio.example.com. A path is ignored, and a bad value falls back to tLib's public URL.
Giving out radios by Discord role
Credentials → Role → codeplug. It stacks with the jobs / ace / item routes; a player admitted by both keeps the higher job grade.
Roles are read when a player first needs a codeplug, then every minute. A role you add or remove in Discord reaches the radio within about a minute, with no reconnect.
A role-mapped codeplug outranks one granted only by everyone = true. A civilian mapped to civ by role holds civ, not the shipped leo. If a role-mapped codeplug still loses to another grant, the console prints one line per player naming the role, the codeplug that won and the ranks, and tradio_diag lists it under Radio access.
Discord must be running when FiveM launches. A player without a discord: identifier cannot be granted anything by role; the console names them once. They need to relaunch FiveM, not reconnect.
If every role lookup answers "no roles", check Credentials → Discord: a guild ID Discord does not know to the bot (or a bot that was never invited to it) is logged once as Unknown Guild.
Most Discord-role resources already write ACE principals, so ace = 'tradio.leo' may suffice.
In-game panel access
Neither panel asks for a password or a NAC ID in game. The check runs before the panel opens: a player without access sees one chat line and no panel.
-
ACE permission —
tradio.dispatchandtradio.admin:cfgadd_ace group.admin tradio.admin allow add_ace group.mod tradio.dispatch allow -
Discord roles — only if a bot token is stored and
discord.guildIdis set. Your bot must be in the guild with the Server Members Intent enabled.
Framework detection
Config = {
framework = 'auto',
frameworkResources = {
esx = 'es_extended', qbcore = 'qb-core', qbx = 'qbx_core',
nd = 'ND_Core', ox_core = 'ox_core', nat2k15 = 'framework',
},
autoRefreshOnJobChange = true,
}| Key | Default | Description |
|---|---|---|
framework | 'auto' | 'auto', 'esx', 'qbcore', 'qbx', 'nd', 'ox_core', 'nat2k15' or 'custom' |
frameworkResources | see above | Resource names used for detection. Change only if you renamed one |
autoRefreshOnJobChange | true | Listen for your framework's job-change event instead of the ~15 s poll |
'auto' probes qbx → qbcore → esx → nd → ox_core → nat2k15, falling back to 'custom'. nat2k15 always polls. 'custom' means you write the server hooks.
A framework you set yourself is never overridden.
'auto' picks the first framework resource that is started, including one nobody uses. A leftover qb-core or es_extended makes every jobs grant evaluate against a framework no player has a job in. tradio_diag names the framework it chose and the resource that made it choose it; if that is not what the server runs, set framework = 'custom'.
Who gets a radio
A codeplug is the radio's programming, and holding one is access. No codeplug, no radio.
tRadio ships open. Out of the box every player is granted the leo codeplug, so the radio works the moment the resource starts, with or without a framework:
Config = {
codeplugGrants = {
leo = { everyone = true },
},
}Lock it down when your framework is up by replacing that line with the routes you want:
Config = {
codeplugGrants = {
leo = { jobs = { police = 0, sheriff = 0, ambulance = 0, fire = 0 } },
fire = { jobs = { fire = 0 } },
},
}Keys are codeplug IDs from Admin Panel → Codeplugs. Each entry lists ways to be granted it, and any one is enough. Pick the route your server already runs on:
| Route | Use it when |
|---|---|
jobs | You run ESX, QBCore, Qbox, ND or ox_core and a job decides who gets a radio |
ace | You already manage groups in server.cfg |
| Discord role (Credentials → Role to codeplug) | Your Discord roles are the source of truth. No config.lua line is needed |
item / custom | A physical item decides, or your own Lua does |
everyone | Everybody gets it. This is the shipped default |
| Kind | Example | Means |
|---|---|---|
jobs | { police = 0, sheriff = 2 } | Job name → minimum grade |
ace | 'tradio.leo' | An ACE grant |
item | 'leo_radio' | Carrying an item |
custom | function(src) return … end | Your own check, returning a boolean |
everyone | true | No restriction. Ranks below every other route |
tradio.codeplug.<id> is always accepted as an ACE, listed here or not.
A player holds exactly one codeplug. When several match, the one demanding the highest job grade wins. A grant admitted by ace, item, custom, a Discord role or a grade-0 job ranks above one admitted only by everyone = true, so leaving the shipped leo = { everyone = true } line in place does not stop another codeplug reaching its players. A tie goes to codeplug ID, and the console names both.
Two spellings of one job (Police = 0 and police = 3 in the same jobs table) are one job, because job names match without regard to case. The higher grade applies, and the console names the grant once. Delete the duplicate.
An empty codeplugGrants — which is what a config carried forward from 6.x has — grants nothing on a server that runs a framework or pins framework. On a server with no framework started and framework = 'auto', everyone receives leo (or every codeplug, when none is called leo) and the console says so once. To lock a bare server down on purpose, set framework = 'custom' or give a grant a route nobody matches.
Requiring a physical radio item
Config = {
requireItem = 'radio', -- nil requires no item
}An item required in addition to a codeplug, for everybody. It is checked first, so a player missing both is denied for the item. To exempt someone, grant their codeplug through ace, custom or everyone.
Inventory item requirement
Config = {
inventory = { system = 'auto' },
}| Key | Default | Description |
|---|---|---|
system | 'auto' | 'auto', 'ox_inventory', 'qb', 'esx' or 'custom' |
enabled | — | Retired — use Config.requireItem. Read only when requireItem is absent |
item | — | Retired — use Config.requireItem. Read only when requireItem is absent |
With Config.requireItem set, tRadio makes that item usable on ox_inventory, QBCore, QBX and ESX by itself. 'auto' detects what your inventory resource supports, including forks.
Carrying the item and using it are two things. A failed registration costs only opening-by-use, but a failed item check denies every player. See Every player is denied radio access.
Opening the radio by using the item
Route 1 — items.lua. Recommended, and universal. No exports, no framework, no minimum version.
-- ox_inventory/data/items.lua
['radio'] = {
label = 'Radio',
weight = 500,
client = { event = 'tradio:client:openRadio' },
},Route 2 — automatic registration. tRadio asks tLib to register the item with every inventory that is running, and tLib registers every method it can prove will fire. An inventory that starts after tRadio, or restarts, is registered with again, so server.cfg order does not matter:
| Method | Used when |
|---|---|
ox_inventory usingItem hook | ox_inventory reports 2.43.0 or newer |
ox_inventory:usedItem event | The hook could not be proven — forks, older ox, bridges |
QBCore / QBX CreateUseableItem | Those frameworks, including alongside ox_inventory |
ESX RegisterUsableItem | ESX, including alongside ox_inventory |
When nothing can be proven, tRadio prints the items.lua line to add plus a Detected: summary. Quote it in a ticket.
Custom and forked inventories
Two hooks in config/sv_functions.lua, both shipping with working defaults.
For the item check, set system = 'custom' and replace Config.playerHasRadioItem:
Config.playerHasRadioItem = function(serverId)
local item = Config.requireItem or 'radio'
local p = promise.new()
exports.vorp_inventory:getItemCount(serverId, item, function(count) p:resolve(count) end)
return (Citizen.Await(p) or 0) >= 1
endFor opening the radio by use, fill in Config.registerRadioItemUse, a stub returning false:
Config.registerRadioItemUse = function(itemName, openEvent)
exports['my_inventory']:RegisterUsableItem(itemName, function(source)
TriggerClientEvent(openEvent, source)
end)
return true
end- Called once at startup, in a
pcall, only whensystem = 'custom'or auto-detection proved nothing - Receives
itemNameandopenEvent; fire that event at the player - Return
trueif you registered something; anything else falls through to theitems.luaadvice
Scanner
A scanner is receive-only — no PTT, and the server refuses one. It is an ordinary codeplug with scanner = true, granted in codeplugGrants.
codeplugGrants = {
scanner = { item = 'police_scanner' },
}A Scanner codeplug ships as a default alongside LEO, carrying the three default zones and twelve channels with SWX-250 as its layout. It is granted to nobody until you map it.
A scanner with an empty channel list renders as a radio that does nothing — the usual reason a working scanner looks broken. Without a grant for a secure channel it shows ENC.
Listen-only for civilians, two ways. Pick by what the player should be holding:
- A scanner device. The
Scannercodeplug above, granted byitem(orjobs,ace,custom). It is the receive-only SWX-250, and holding the item is what gives it - An ordinary radio that can only listen. Make a codeplug whose channels are under Scan Access and not Channel Access. The player can scan those channels but cannot connect or transmit on them, and a connect attempt is refused with
Scan only. Grant it like any other codeplug
Vehicle radio prop
Where it sits is positioned in game per vehicle (/tradio → 3D Prop Editor in the sidebar, needs tlib.admin; with Personal Radio Placement on, any player can place their own with /tradioedit). This section is which model spawns.
Config = {
vehicleProp = {
default = 'ztr540',
models = {
{ model = 'ztr540', label = 'ZTR-540 (built in)' },
},
},
}| Key | Default | Description |
|---|---|---|
default | 'ztr540' | Model for a placement that names none. Anything not in models falls back to ztr540 |
models | see above | The list offered in the prop editor. model is the archetype name; label is cosmetic |
tRadio streams exactly one model itself, ztr540, which cannot be removed. The models list is read at startup.
model is the archetype name from the .ytyp, not the file name, and is case-insensitive. Get it wrong and the vehicle falls back to default.
Advanced: behind a reverse proxy
Only if you want a custom domain or HTTPS. Nothing here is needed to reach the panels, which answer on the FiveM server port already.
A proxy sits in front of tLib's own listener, so that port has to be configured and
reachable first — see tLib's advanced listener guide.
The service speaks plain HTTP, and a proxy on 127.0.0.1 needs no trusted-proxy entry.
- Forward WebSocket upgrades — HTTP-only forwarding serves the panel, then fails every connection
- Point the proxy at
tlib_http_port, never tRadio's internal loopback port - Raise the read and send timeouts — nginx cuts a quiet WebSocket at 60 seconds
location / {
proxy_pass http://127.0.0.1:7777; # must equal tlib_http_port
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Without these, nginx closes an idle WebSocket after 60s.
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
}List your proxy. An unlisted one makes every player count as the same client for rate limiting.
set tradio_trusted_proxies "172.17.0.1, 10.0.0.5"Required whenever the proxy is not on localhost. Loopback is always trusted, an IPv4 entry also matches its IPv6-mapped form, and the value is read once at startup.
Framework integration
Assigning codeplugs to jobs
The mapping lives under codeplugGrants. sv_functions.lua now only answers what job does this player hold.
The lookup is case-insensitive on all six frameworks. On nat2k15, dept level keys ('lspd_level') and display names ('LSPD') both work. Every job the player holds counts, including ox_core groups and qb gangs.
Different codeplugs per rank. Give each its own minimum grade; the highest the player clears wins. Below, grades 0–2 get leo, 3–7 leo-supervisor and 8+ leo-command.
codeplugGrants = {
leo = { jobs = { police = 0 } },
['leo-supervisor'] = { jobs = { police = 3 } },
['leo-command'] = { jobs = { police = 8 } },
fire = { jobs = { fire = 0 } },
},With no framework running, jobs grants nobody. Use ace, item, custom or everyone on a standalone server.
Server hooks
All in config/sv_functions.lua, shipping with working implementations for every supported framework. Edit them only to change behavior.
| Hook | Returns | Called |
|---|---|---|
Config.getPlayerAccess(serverId) | boolean | Every server-side radio event. false denies the radio entirely |
Config.playerHasRadioItem(serverId, item) | boolean | Whenever an item is asked about. Replace when system = 'custom' |
Config.getPlayerCodeplugId(serverId) | codeplug ID or nil | Access resolution. Shipped version resolves Config.codeplugGrants |
Config.getPlayerName(serverId) | string | The name on radios and the dispatch panel |
getPlayerName's 'custom' branch falls back to GetPlayerName(serverId) — the Steam or FiveM display name, not an RP character name. Return a string, never nil; serverId ≤ 0 means the dispatcher.
Config.getPlayerName = function(serverId)
if not serverId or serverId <= 0 then return "DISPATCH" end
local p = MyFramework.GetPlayer(serverId)
if p and p.charinfo then
return p.charinfo.firstname .. ' ' .. p.charinfo.lastname
end
return "Player " .. serverId
endRefreshing access after a job change is automatic on QBCore, QBX, ESX, ND_Core and ox_core. To trigger it yourself, call exports['tRadio']:refreshNacId(source).
Client hooks
In config/cl_functions.lua.
Config.canTalk() — runs while PTT is held; return false to block transmission. Returning false mid-transmission force-stops PTT and logs canTalk check failed mid-transmission to F8 — the most common non-hardware cause of "my mic doesn't work".
Config.canTalk = function()
if IsPlayerDead(PlayerId()) then return false end
if IsPedSwimming(PlayerPedId()) then return false end
return true
endConfig.batteryTick(currentBattery, deltaTime) — returns the new battery level, deltaTime in seconds. As shipped, any vehicle charges. Battery Drain in Settings → General skips this hook entirely.
Config.batteryTick = function(currentBattery, deltaTime)
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
if vehicle ~= 0 then
return math.min(100.0, currentBattery + (0.5 * deltaTime)) -- full charge in ~3 min
end
return math.max(0.0, currentBattery - (0.1 * deltaTime)) -- full drain in ~17 min
end| Hook | What it does |
|---|---|
Config.bgModeCheck() | Polled every 500 ms. Returns a mode string for the background sound behind your voice, or false. Ships with "helicopter", "k9" and the siren provider. See Background sounds |
Config.k9Models | Ped models that trigger "k9". Seven GTA dog models ship |
Config.animations | The animation list players choose from. See Animations |
Config.screenRange | Metres within which another vehicle's dash radio is drawn. Default 8.0; your own is exempt, 0 leaves only that |
Zones and channels
Managed live in Admin Panel → Zones & Channels. A zone is a group of channels; a channel is one frequency inside it.
A new zone is invisible until a codeplug references it
Players get channels from their codeplug, so a zone in no codeplug is invisible — no error, no warning. This is the most common "I set it up and nothing works" report. Two steps:
- Zones & Channels → Add Zone, then add channels and save
- Codeplugs → Channel Access, on every codeplug that should hear them
An unreferenced zone carries a Not in any codeplug badge, and saving a new one prompts once.
Channel types
Conventional — one shared frequency. Everyone connected hears everyone else regardless of location. Use this for almost everything.
Trunked — units get a sub-frequency by location, so crews across the map do not step on each other. Needs a frequency range and a coverage radius. Dispatchers work it two-way through its control frequency, and the log groups the talkgroup under one entry.
Direct / simplex channels
A conventional channel can use the Direct / Simplex RF path: radio-to-radio, no repeater, no towers. RF path is separate from Mode, so a direct channel can be analog or P25.
| Setting | Default | Range | What it does |
|---|---|---|---|
| Direct range | 1500 | 50–10000 m | Distance at which reception ends. Bars fall 5 to 1 across it |
| Obstructed range | 35 | 1–100 % | Share of range left when terrain sits between two nearby radios |
| Dispatch base radio | off | — | Fixed map position and routing bucket for dispatch |
- Reception is per radio. Two units 3 km apart can both talk without hearing each other. A two-bar lead wins; similar strength gets neither
- Channel busy is per radio too — only traffic your own radio hears blocks you
- Signal bars show what you are receiving, not coverage
- Speakers, vehicle radios, gunshots, explosions and sirens follow the same rule
- Players in different routing buckets never hear each other
- Dispatch needs a base radio, or the channel is left off the panel entirely
Obstruction checks are short-range — tested under 500 m, and can only shorten the range. Longer links use the distance envelope alone.
Direct channels cannot be trunked, patched or grouped — each would act as a hidden repeater. Channels sharing a frequency must share RF settings, or that frequency carries no direct traffic.
Channel fields
| Field | Type | Default | Description |
|---|---|---|---|
| Name | string | — | Display name on the radio, e.g. DISP |
| Frequency | number | — | MHz. Must be unique across all zones |
| Type | select | conventional | conventional or trunked |
| RF path | select | repeater | repeater or direct (stored as rfMode) |
| Mode | select | analog | p25_digital runs the channel through a vocoder |
| System type | select | imbe | Digital only (stored as codec): imbe is P25 Phase 1, c2-3200 is M17's Codec 2 |
| Dispatch | toggle | off | Monitor only — dispatchers listen, never transmit (canTransmit: false) |
| Duplex (dispatcher hub) | toggle | off | Units on the channel hear the dispatcher and not each other, and dispatchers hear every unit (duplex: true). See Duplex channels |
| Frequency range | two numbers | — | Trunked only. Start and end of the sub-frequency pool |
| Coverage | number | — | Trunked only. Cell radius in metres |
| Security intent | select | clear | Marks the channel encrypted and lights the secure (⊘) icon. Does not scramble audio |
| GPS color override | blip ID | unset | Overrides the codeplug's GPS color for players on this channel |
| Mic clicks | four selects | radio model's | Under Mic clicks: the tone for your own key-down (PTT) and key-up (PTT_END), and for hearing a call start (TX_START) and end (TX_END), stored as tones. Pick any tone from the Sounds page, including uploads you have mapped there |
Mic clicks. Each click defaults to the radio model's own, so a channel you never touch changes nothing. A tone you pick is played exactly as named: it replaces the _TRUNKED and _PATCHED variant the channel would otherwise use. A call heard on a scanned channel uses that channel's clicks. They apply to players' radios and to the dispatch panel: a dispatcher keying up on the channel, and hearing a unit key up on it, plays the channel's tones too. Remap a tone on the Sounds page and every channel using it follows.
Duplex channels
A channel marked Duplex is a dispatcher hub, the way some older county systems run: field units hear the dispatcher and not each other, and the dispatcher hears every unit. It is the reason such a system needs a dispatcher at all.
- A dispatcher's transmission reaches everyone on the channel as usual
- A unit's transmission reaches the dispatchers on the channel and nobody else. 3D radio audio from nearby radios and civilian scanners follow the same rule. Other units still see who is keyed up on their channel list, but hear nothing
- A live patch that holds the channel lifts it, so a dispatcher can put a station's units in touch with each other by patching the channels. Taking the patch down puts the restriction back. A simulcast does not lift it
- With no dispatcher on the channel, Settings → Duplex Channels Open Without a Dispatcher decides. On, the default, lets units hear each other again so a channel nobody is dispatching is not left silent. Off keeps it silent until a dispatcher takes it
A channel that is not marked duplex is never affected. Trunked channels have no Duplex switch: their units talk on per-area cells, which the restriction cannot follow.
Long names. A radio screen shrinks a long name down to the layout's smallest text size and then cuts it with …; there is no scrolling text. The in-game channel list wraps a long name onto a second line instead of clipping it, and anywhere the screen is shown in a browser the full name is the hover text. The in-game NUI shows no hover text. Keep Name short enough for the screen and put the full wording in Announcement name, which is what voice announcements speak.
What secure does. The icon shows steadily and blinks on an encrypted call, and an ungranted scanner shows ENC. It does not scramble audio.
Each channel has a generated channel ID shown under its name (disp-lx1gi). That ID is what codeplugs reference — not the frequency, not the name.
Trunked channels need a valid frequency range and coverage. Range start must be below range end and coverage above 0. Sub-frequencies step by 0.0125 MHz, so a narrower range hands out nothing.
A panel save is refused with the reason. A hand-edited file is coerced where it safely can be, so check the console after a hand-edit.
Frequencies, coverage and frequencyRange normalize to four decimal places. Startup also reports, by name, a missing Channels list, a missing or non-numeric frequency, a missing type, and two channels sharing a frequency inside one zone.
Reordering zones and channels
Each zone card and channel row has a drag handle (⠿), and the new order is what players see. Channels reorder only within their zone.
Hiding a zone from dispatch
A Hide from dispatch toggle keeps a zone's channels off the panel and its traffic out of the log and user counts. In game it works as before.
Announcement groups
A group is a named set of channel IDs: a dispatcher arms one and their next PTT fans out to all of them. Each can get its own PTT key. Two ship: * DISP and * C2C.
Geo zones
Admin Panel → Coverage → Areas. An area (a circle, or a polygon you draw on the map) that switches a player's radio to a target frequency when they walk in, and back when they leave. An area can also set the signal inside it, which is how you make a tunnel, a valley or a building the towers know nothing about weak or dead.
| Field | Description |
|---|---|
| Position (X, Y, Z) | World coordinates of the centre |
| Radius | Metres |
| Vertical bounds | Optional min/max world Z for stacked areas. Min must be ≤ max |
| Target frequency | Must match a configured channel, or the save is rejected. Choose No channel (signal only) for an area that only changes signal |
| Signal in this area | Percent of normal signal for everyone inside, 0–300. 100 changes nothing, 0 is a dead zone, blank leaves signal alone. It stacks with the built-in indoor, underground, vehicle, weather and line-of-sight costs, and where areas overlap the weakest wins. Always Full Signal still gives full bars |
Auto-switching is opt-in per player and per zone: the master Geo Auto-Switch toggle plus the zone's checkbox in /tradio → Behavior → Zones. /tradio_debug coords copies your position.
Codeplugs
A codeplug is a radio personality: which channels a player gets, which models they can pick, which features are on, and what the emergency button does. Managed in Admin Panel → Codeplugs; granted in codeplugGrants.
Codeplug sections
| Section | What you set |
|---|---|
| Identity | ID (locked after creation — grants reference it), name, and NAC. The NAC is cosmetic and gates nothing |
| Allowed Models | Which radio models players may select. Selecting none leaves them with no radio |
| Default Layouts | Model shown first per context: on-foot focused and unfocused, ground, water, air. Per-vehicle overrides (spawn name or display name) win, and a player's own saved pick for a vehicle wins over all of them. See Radio styles |
| Channel Access | Channels this codeplug can connect and transmit on. Scan access follows automatically. Zone access is derived |
| Scan Access | Extra listen-only channels |
| Scan Lists | Named lists, priorities, talkback and hang time, and which list each channel scans. See Scan lists |
| Home Softkeys | Softkey banks for conventional and trunked channels, plus the menu timeout. See Home softkey banks |
| Display | Clock format, date order, top display zone letter. See Display |
| Features | GPS Blips, Scan, Emergency Button, Man Down. GPS Blips has three settings: Off withholds the unit's position (the server enforces it, not just the radio), Player's choice lets the player switch their own blip on and off, and Always on keeps the unit on the map and removes the switch from the player's /tradio settings and from the radio's Loc key. A server that wants every unit visible, such as a CAD-driven roleplay server, uses Always on. A codeplug saved with an older panel reads as Player's choice |
| Supervisor Access | The in-game Alrt key and the trunked Ctrl/Trnk keys, without server admin rights |
| Emergency Configuration | Button hold, keep-alive, profiles, per-channel assignment, Man Down timers. See Emergency profiles |
| GPS Visibility | Which other codeplugs' blips this one sees, plus its own blip and panic flash colors |
| Scanner | scanner = true makes this codeplug receive-only. See Scanner |
Minimum viable codeplug: an ID, a name, one allowed model, one channel. Changes reach a player the next time their job loads or you call refreshNacId.
Scan lists
A radio scans the list of the channel it is on, the way a real one does. Players turn scanning on and off and edit lists on the radio; see Scanning.
| Priority | Meaning |
|---|---|
| Priority 1 | Takes over from any other scanned traffic; cannot be nuisance-deleted |
| Priority 2 | Takes over from non-priority channels; cannot be nuisance-deleted |
| Non-priority | Heard when nothing higher is busy. New entries start here |
A real radio has one Priority 1 and one Priority 2 per list, and the panel warns when a list has more. Giving a channel a priority takes it from the one that had it.
Which list each channel scans, under Scan Lists → Which list each channel scans:
| Setting | Choices |
|---|---|
| Default for this codeplug | Personal (built on the radio), No scan list, or one of the codeplug's lists |
| Per channel | Use default, No scan list, or a specific list |
With lists but no default, unassigned channels scan the first list. With none at all, every player gets a Personal list built with Edit Scan. Scan shows No scan list or List empty accordingly. Deleting a list returns its channels to the default.
Talkback and hang time. Each list has both, and a row above the lists sets them for the Personal list and anything on Use default:
| Setting | Choices | Meaning |
|---|---|---|
| Transmit while scanning | Use default, Selected channel, Talkback | Selected channel (the default): PTT uses the selected channel. Talkback: PTT answers on the scanned channel the radio is stopped or parked on |
| Hang time | 0.5–10 s (default 1) | How long the radio stays parked on a scanned channel after it goes quiet |
The panel warns when a Talkback list holds scan-only channels, where a stopped player gets the bonk. Satellite players cannot use talkback at all.
Home softkey banks
Codeplugs → Home Softkeys programs the Home softkey row. Two banks: conventional (and no channel) and trunked. Leave a bank on Use default, or Customize to choose and order the keys.
| Key | Action |
|---|---|
Zone / Chan | Select Zone / Select Chan |
Scan | Scan on/off; hold for Edit Scan |
ScnL | Edit Scan |
Nuis | Nuisance delete |
Loc | Location sharing |
Info | Info → Radio Info |
Optn | Options |
ZnUp / ZnDn | Change zone immediately |
ChUp / ChDn | Change channel immediately |
Vol | Opens Voice vol |
Clck | Read-only Clock screen |
Alrt | Supervisors: fires the first configured alert on the channel |
Ctrl / Trnk | Supervisors, trunked: control frequency / sub-frequency |
Defaults are ZnUp Zone ZnDn Chan Scan Nuis ScnL Optn Loc Info then Alrt (conventional) or Ctrl/Trnk (trunked). Clck, ChUp/ChDn and Vol appear only if added. That order leaves Chan on page two of a three-key radio.
Unusable keys are skipped and the row closes up: scan keys without scan, Loc without GPS, supervisor keys without Supervisor Access. The panel warns, without blocking, when a bank omits Zone, Chan or Optn.
Menu timeout. Off by default; Turn on sets 30 seconds, and 5–300 is allowed. An idle radio returns to Home with the MENU_INACTIVE_EXIT tone, discarding anything unconfirmed. See Menu timeout.
Display
| Setting | Choices |
|---|---|
| Clock | 12-hour (01:45pm, default) or 24-hour (13:45) |
| Date order | Month/Day/Year (default) or Day/Month/Year. A date shows only when Radio clock time is the player's computer |
| Top display zone letter | None (default), Basic bank (A–F for zones 1–6) or Enhanced bank (A–Y, one letter per three zones, zones 1–75) |
The time comes from Settings → General → Radio clock time. The zone letter appears only on the QRX-720H top view.
Emergency profiles
Codeplugs → Emergency Configuration programs the emergency button: every channel runs one profile. See Emergency for how each mode behaves.
| Setting | Meaning |
|---|---|
| Button hold | Hold time for the orange button, 50–6200 ms (default 1000). Ending is always a one-second hold |
| Keep radio on during emergency | The radio cannot be powered off until the emergency clears |
| Profiles | One or more named profiles; a codeplug always keeps at least one |
| Man Down timers | Pre-alert and post-alert seconds. Blank uses the server's Warning Delay / Emergency Delay |
Each profile has:
| Field | Choices |
|---|---|
| Mode | Alarm — ends on acknowledgment or exhausted retries. Call — a priority call, trunked only. Alarm + Call — alarm, then call on acknowledgment, exhausted retries, or PTT |
| Silent | Alarm and Alarm + Call only. The sending radio shows and plays nothing; dispatch still sees it |
| Channel | Tactical (stay put) or Revert to a channel this codeplug can use. A reverted radio returns when the emergency ends |
| Hot mic | 0–120 s of self-keyed microphone on the first emergency transmission. 0 = off. Auto Transmit refuses it |
| Alarm retry every / Retries | Repeat interval while unacknowledged, and retries before No acknowledge. Not used by Call |
| Alert | The alert whose tones, color and banner this emergency uses: activate tone and banner when raised, repeat tone on each alarm retry, deactivate tone and banner when cleared. The alert named Panic (the default) is what every profile used before this field, and the built-in panic sound plays when no alert has that name. The profile refers to the alert by its name, so renaming the alert breaks the link (the profile then falls back to Panic and the server console says so once) |
Which profile each channel uses works like scan list assignment: a default plus per-channel overrides. A No emergency channel gives a short reject tone, a conventional channel inheriting Call runs it as Alarm + Call, and Emergency Button off disables emergency everywhere.
A codeplug saved before profiles existed shows as a single Default profile built from its original settings.
Server-wide safety limits sit outside the codeplug: Panic Alert Timeout and Panic Alert Cooldown in Settings → Audio & Radio.
How access is resolved
Every radio open attempt and every refreshNacId call runs this chain. A player gets the union of codeplug access and ACE grants.
| Step | Gate | Denied when |
|---|---|---|
| 1 | Config.getPlayerAccess(serverId) | Returns false — no radio at all. Leave this hook alone: it only asks whether step 2 found a codeplug, and no message from tRadio asks you to change it |
| 2 | Codeplug assignment via codeplugGrants, getPlayerCodeplugId, or tradio.codeplug.{id} | No codeplug — no radio |
| 3 | Zone visibility — derived from selected channels, or tradio.zone.{N} | No channel in the zone and no ACE |
| 4 | Channel connect — codeplug channel access or tradio.connect.{freq} | Neither — channel hidden |
| 5 | Scan — codeplug scan access, connect access, or tradio.scan.{freq} | Neither — no scan |
| 6 | GPS visibility — codeplug GPS Visibility list or tradio.gps.{freq} | Neither — no blips |
| 6a | On the map — the codeplug's GPS Blips feature, then the player's GPS switch (skipped when the codeplug is Always on) | Either off — they see blips but are not one |
| 7 | Supervisor controls (Alrt, trunked Ctrl/Trnk) | Requires tlib.admin or the codeplug's Supervisor toggle |
Nothing configured? With no framework started, framework = 'auto', no Discord mapping, and either no grants at all or only jobs routes, tRadio runs standalone: every job-mapped codeplug (or leo, when the table is empty) goes to every player, and the console prints one Standalone: line. Add any other route, and grants are read strictly.
ACE permissions
An alternative or supplement to codeplug assignment. tradio.codeplug.{id} has the highest priority and overrides codeplugGrants.
| ACE | Grants |
|---|---|
tradio.codeplug.{id} | Assign codeplug {id} directly |
tradio.connect.{freq} | Connect and transmit on a frequency |
tradio.scan.{freq} | Scan (listen only) a frequency |
tradio.gps.{freq} | See GPS blips on a frequency |
tradio.zone.{N} | Access zone N by its 1-based position in the zone list |
tlib.admin | In-game Alrt, trunked Ctrl/Trnk, and the 3D prop editor. Not the web admin panel |
add_ace identifier.steam:110000100000001 tradio.codeplug.leo allow
add_ace group.ems tradio.connect.154755 allow
add_ace group.ems tradio.scan.8561125 allow
add_ace group.ems tradio.zone.1 allow
add_ace group.admin tlib.admin allowFrequency keys drop the decimal point: 154.815 → 154815. A precise form keeps it as an underscore — 154_815 — because dropping it is lossy: 1.23 and 12.3 both become 123. tRadio warns on startup if yours collide.
Pre-7.0 tRadio.* spellings are still honoured, and the console names each once per start.
When an ACE change takes effect. A grant handed out through the admin panel, or through a
job or codeplug change your framework reports, applies at once. An add_ace or remove_ace
typed at the console is not an event tRadio can see, so it lands on the next permission sweep —
every 15 seconds, 60 in some states. A resolved grant is additionally held for at most five
minutes as a staleness ceiling, which is the backstop for a change with no event and a sweep
that is not running. If you ever see a grant stale for minutes, the sweep has stopped on that
player and that is the thing to find; shortening the ceiling would hide it.
Server settings
Admin Panel → Server Settings, four tabs. Every value applies live to all connected clients unless marked restart required.
General tab
| Setting | Default | Description |
|---|---|---|
| Check for Updates | true | Check for new tRadio versions on start |
| Include Pre-release Updates | false | Also pull release candidates |
| 911 Calling | false | Master switch, off until you turn it on. Enforced immediately server-side, but /911 only disappears for players who reconnect. Restart required |
| 911 Command | 911 | Chat command name, without the slash. Rename it when another resource already owns /911. Like Callsign Command, each player registers the name they were given on connect, so a rename reaches players who reconnect or the next restart tRadio. Restart required |
| 911 Call Cooldown | 30 s | Minimum wait between a player's calls. 0 disables it; a 5-second backstop still applies |
| Low Battery Chirp | true | Warning chirp under 50% battery, more frequent under 30% |
| Battery Drain | true | Off holds every battery at 100% and skips Config.batteryTick |
| Log Level | 3 | 0 Error · 1 Warnings · 2 Minimal · 3 Normal · 4 Debug · 5 Verbose |
| Radio Blips | true | Master switch for minimap blips of other units. Who a player sees is decided by their codeplug's GPS Visibility list (see Codeplug sections), not by what channel anyone is on |
| Same Channel Only | false | Narrow the map to the player's own channel: a unit sees only units tuned to the channel they are on. It only takes away, so a department the codeplug hides stays hidden. An exact channel match — scanning a channel and a dispatch patch do not widen it, and a player whose radio is off sees nobody. Off is how every server behaved before this setting, so an update changes nothing until you turn it on |
| Blip Update Rate | 50 ms | Client-side render interval. Below 50 ms is not recommended |
| Radio Animations | true | Off: no radio animation plays and the selector is hidden. Turn it off when another resource, such as your EUP, drives the animations |
| Personal Radio Placement | false | Let players who are not admins move the radio in their own vehicle with /tradioedit. The position is saved on the player's own computer and only they see it; admins always edit the shared placement. Off puts everyone back on the shared placement and keeps what players saved for if you turn it on again. Models listed in tlib_locked_models cannot be moved this way |
| Focus Layout Mode | false | A separate skin when the UI is open but unfocused. Needs a HandheldUnfocused layout |
| Enable Callsigns | true | Let players set a personal callsign |
| Require a Callsign to Join | false | A radio with no callsign cannot join a channel, scan or listen. The player is told to set one (their /tradio settings open) and the radio joins by itself the moment the server has it. Dispatchers, players on a satellite server and a 911 caller joining their own call are never asked, and a callsign set by a dispatcher or another resource counts. It does nothing while Enable Callsigns is off. If the server cannot answer, the player is let in rather than locked out |
| Callsign Command | callsign | Chat command name, without the slash. Restart required |
| Man-Down by Default | false | New players have man-down monitoring on |
| Warning Delay | 45 s | Motionless time before the Man Down post-alert. Range 10–300. A codeplug's timers override it |
| Emergency Delay | 20 s | Post-alert time before the emergency is raised. Range 5–120. A codeplug's timers override it |
| Panic On Death | false | Treat an ordinary death as man-down. Off by default: with the radio on, a routine death otherwise puts a panic on the channel seconds later, and a dispatcher cannot tell it from a real officer down. Shown only while Man-Down by Default is on |
| TTS by Default | true | New players hear spoken zone and channel announcements |
| Radio clock time | Game world | Game world: the in-game clock, no date. Player's computer: their local time and date. Format is per codeplug under Display |
The four Man-Down settings are the only ones that raise an emergency without a key press. Read Man down first.
Audio & Radio tab
Audio Defaults — applied when a player first connects.
| Setting | Default | Description |
|---|---|---|
| Voice Volume | 65 | Default radio voice volume (0–100) |
| Tone Volume | 35 | Default tone and effect volume (0–100) |
| 3D Audio Volume | 50 | Default 3D spatial volume (0–100) |
| Volume Step | 5 | Change per press of a volume keybind. Range 1–25 |
PTT & Transmission
| Setting | Default | Description |
|---|---|---|
| PTT Release Delay | 350 ms | How long the radio stays open after releasing PTT. 0 releases immediately; otherwise 1–2000. A value set outside that range from the Raw Config page or the API is rewritten to the bound on load, so the stored number is always the one in force |
| Transmit Time-Out | 60000 ms | The radio's own TOT: a key held this long is cut off, with a warning four seconds earlier. 0 turns it off; otherwise 5000–1800000, and less is raised to 5 s |
| PTT Triggers Proximity | true | With no radio equipped, PTT activates proximity voice. Requires MumbleVoice |
| Channel Patching | true | Whether dispatchers can patch channels together from the dispatch panel. Turning it off removes every active patch at once, including the ones the server opened itself, refuses new ones (403 from the patch API), hides the Patch button on the panel, and empties the saved list of live patches so nothing returns at the next restart. A saved patch definition is kept, inert, for when it is turned back on. Turning it back on does not bring the removed live patches back |
| Duplex Channels Open Without a Dispatcher | true | Only for channels marked Duplex. With no dispatcher on the channel, true lets units hear each other again; false leaves the channel silent until a dispatcher takes it (duplexOpenWithoutDispatcher) |
| Independent Vehicle Radio | false | Gives every vehicle a radio of its own that every seat shares, instead of the two front seats lending each other their portables. The front seats change it, rear seats follow it, and what it was left on is there for the next person for 30 minutes. See A radio that belongs to the vehicle (vehicleRadioIndependent) |
| Transmission Tones | true | Play TX_START / TX_END when someone begins or ends transmitting |
| Analog Tones | true | Use analog squelch sounds (PTT / PTT_END, heard by the transmitter) instead of digital receiver tones |
| Panic Alert Timeout | 60 s | How long an emergency stays active before auto-clearing, for crashed or AFK units. 0 = manual only |
| Panic Alert Cooldown | 15 s | Minimum wait before the same player raises another emergency there. Never blocks clearing one |
Half-Duplex (Bonking) — what happens when someone keys up over another unit.
| Setting | Default | Description |
|---|---|---|
| Block Transmission | true | Deny the PTT attempt. Off, it goes through but a collision tone plays |
| Play Bonk Tone | true | Play a tone to the blocked user |
| Bonk Tone to All | false | Everyone on the channel hears it, not just the blocked sender |
| Double-Tap Override | true | Two quick PTT presses force a blocked transmission through |
| Double-Tap Window | 1500 ms | How close the presses must be. Range 100–5000 |
3D Positional Audio — everything below the master switch is hidden until it is on.
| Setting | Default | Description |
|---|---|---|
| Enable 3D Audio | true | Master switch |
| 3D Audio On by Default | true | Sets each new player's Earbuds default, inverted. On: Earbuds off, their radio is audible to others. Off: Earbuds on, their radio emits nothing. Never overrides a choice a player has made |
| Vehicle 3D Audio | true | A vehicle the player has been in keeps rebroadcasting their radio |
| Vehicle 3D Distance | 3 m | How far the player must walk before the vehicle takes over as the source |
| Player Speaker Range | 35 m | How far a handheld carries |
| Vehicle Speaker Range | 60 m | How far a vehicle-sourced radio carries |
Signal Coverage
| Setting | Default | Description |
|---|---|---|
| Always Full Signal | false | Force full bars and no degradation, without deleting your towers |
| Signal Degradation | false | Reduce audio quality with distance from the nearest tower |
| Falloff Rate | 24 | How fast quality drops. 0 gradual, 100 steep |
| Degradation Intensity | 50 | How severe degradation is at low signal |
Degradation does nothing until towers exist — see Signal towers.
Signal situations — each is a percent of normal signal, shown in Settings → Audio under Signal Coverage and hidden while Always Full Signal is on. 100 is no change; lower means fewer bars.
| Setting | Default | Range | Description |
|---|---|---|---|
| Indoors | 60 | 5–150 | Inside a building. A tower that gives full bars outside gives noticeably fewer here |
| Underground | 25 | 5–150 | Tunnels and the subway. The harshest of the defaults |
| In a Vehicle | 90 | 5–150 | Inside a vehicle body |
| In an Aircraft | 115 | 5–300 | Above 100 reaches further, because height buys line of sight |
| No Line of Sight | 70 | 5–150 | A hill or a building sits between the player and the nearest tower. Checked once a second with a map line-of-sight probe to that tower's antenna, so only the nearest tower is tested |
| In Heavy Rain | 80 | 5–150 | Scales with how hard it is raining |
Dispatch Scanning — Simultaneous Scan Audio (default false). Off, a transmission on the dispatcher's main channel mutes scanned channels. On, every scanned channel plays independently. This is the server's default: each dispatcher can override it for their own panel under Settings → Scanned channel audio, and Follow the server goes back to this value.
Radio Audio Effects — see Radio FX.
Keybinds
The radio key shows a hidden radio, focuses a visible one, and hides a focused one. Escape returns control to the game. Rebind in FiveM → Settings → Key Bindings → FiveM.
| Key binding | Default |
|---|---|
| Radio - Push to Talk | B |
| Radio - Open / Hide Radio | F6 |
| Radio - Voice Volume Up / Down | = / - |
| Radio - Tone Volume Up / Down | ] / [ |
| Radio - Power On/Off | unbound |
| Radio - Hide Radio | unbound |
| Radio - Emergency (hold) | unbound — hold for the codeplug's button hold time |
| Radio - Light / Dimmer | unbound — follows the radio's Light or Dimmer |
| Radio - Menu Arrow Up / Down / Left / Right | unbound |
| Radio - Home Button | unbound |
| Radio - Softkey 1 / 2 / 3 | unbound |
| Radio - Channel Up / Down, Zone Up / Down | unbound |
| Radio - Next / Previous Radio Model | unbound — hidden unless Radio Animations is on |
| Radio - 3D Volume Up / Down | unbound — hidden unless 3D Audio is on |
Advanced tab
Earpiece / Items — GTA outfit slots that switch earbuds on automatically. Clothing is checked every 7 seconds; a manual toggle holds until it changes.
| Field | Description |
|---|---|
| Type | prop for accessories, component for clothing |
| Slot | The GTA slot — props include Hat/Helmet (0), Glasses (1), Ear/Earpiece (2), Watch (6), Bracelet (7) |
| Drawable ID | The 0-based clothing variant index |
Networking & Limits — Control Message Rate Limit (default 120, range 30–2000). Control-plane messages per connection per 10 seconds — joins, leaves, scan edits, PTT starts. Voice is never counted.
LB Phone / LB Radio — see LB Phone and LB Radio. CAD / MDT — see CAD / MDT.
Radio layouts
Each radio model is a folder in layouts/, its screen described by ui.html using data- attributes. None of it changes channels, menus or keys. Apply with restart tRadio.
ui.html attribute | What it does |
|---|---|
data-radio-default-scale | Starting size 0.5–1.5 for a player with no saved size. DRX-330 1.25, QRX-720 1.15, QRX-720H 0.8 |
data-radio-power-source | "vehicle" hides the battery icon. Set on HLX-120, HLX-120G, ZTR-540, ZTR-540S and KVD-880 |
data-fit-min (on a text element) | Smallest size text may shrink to. Longer text is shortened with … |
data-radio-persistent-message="tint" | Top-view style: an emergency or Man Down tints the glass instead of a message strip. QRX-720H uses it |
data-icon-dark (on an <img>) | The image shown in the Dark theme, for example <img src="icons/batt_0.png" data-icon-dark="icons/batt_0_dark.png">. Light shows src. The path is relative to the layout folder, like src |
The radio carries a theme-dark or theme-light class, so a layout can restyle anything per theme in its own CSS (.theme-dark .my-icon { … }). A single-colour icon needs neither: draw it as a mask over var(--lcd-ink), as the shipped layouts do, and it follows the theme's ink. data-icon-dark is for artwork with more than one colour.
Everything else is ordinary CSS in the layout's ui.html. Copy a shipped model's folder and edit it.
Sounds
Admin Panel → Sounds. All changes broadcast instantly.
Tone catalog
Every tone is a named slot mapped to a WAV. Map them under Global Tone Mappings, and upload new WAVs from Marketplace → Sounds.
| Tone | Plays when |
|---|---|
PTT / PTT_TRUNKED / PTT_PATCHED | You key up — conventional / trunked / patched |
PTT_END / PTT_END_TRUNKED / PTT_END_PATCHED | You release |
TX_START / TX_START_TRUNKED / TX_START_PATCHED | Someone else keys up |
TX_END / TX_END_TRUNKED / TX_END_PATCHED | Someone else releases |
BEEP | Generic alert beep |
BONK | Transmission collision |
CHIRP | Short acknowledgment, also the low-battery chirp |
ECHO | Message received |
PANIC | A unit's emergency starts, and each unacknowledged alarm retry. Not for Silent |
EMERGENCY_ENTRY / EMERGENCY_EXIT | Your own emergency starts / ends |
EMERGENCY_REJECT | The emergency button on a channel with no emergency, or power-off blocked by keep-alive |
EMERGENCY_NO_ACK | The alarm ran out of retries without an acknowledgment |
EMERGENCY_NO_EMERGENCY | Repeats while an emergency is paused on a channel with no emergency |
CONSOLE_ACK | Four tones: a dispatcher acknowledged your emergency |
MAN_DOWN_CONTINUOUS | Repeating during the Man Down post-alert. Map a sound to it on the Sounds page to replace the built-in tones |
MENU_INACTIVE_EXIT | The menu timeout returned the radio to Home |
TOT_WARN / TOT_EXPIRED | Transmit time-out warning / time-out |
ALERT_A / ALERT_B / ALERT_C | Default alert-tone slots |
ALERT_SIGNAL3 | Signal 3 alert tone |
PRIORITY / PRIORITY_REPEAT | Priority alert activation and each repeat |
RING_OUT / RING_IN | Heard by a 911 caller while ringing / by dispatchers when a call arrives |
GUNSHOT | A player fires while transmitting (2D and 3D) |
EXPLOSION | A nearby explosion is picked up while transmitting (2D, 3D and dispatch) |
Per-model overrides replace one tone for one model, or drop WAVs at layouts/{MODEL}/sounds/{TONE_NAME}.wav.
GUNSHOT ships as bgShot.wav, the one slot not named after its file. Clearing it on the Sounds page silences gunshots, and stays cleared across restarts — the only tone where clearing means silence, because every other slot's stock file is named after the slot and is found again. Clearing EXPLOSION falls back to explosion.wav, which ships.
EXPLOSION defaults to explosion.wav. Networked explosions within 150 m of a transmitting player are picked up; client-local ones are not.
Adding a sound
Drop the file into layouts/sounds/ — no folder to create, no manifest to write. The server lists any .wav there on the Sounds page, without a restart.
layouts/sounds/
ptt.wav
transStart.wav
airhorn.wav <- yours.ogg and .mp3 play too and install from the marketplace, but a bare .ogg dropped in by hand is not auto-discovered.
Background sounds
These fixed-filename WAVs in layouts/sounds/ play during a received transmission and cannot be renamed:
| File | Purpose |
|---|---|
transStart.wav | Click-in at the start of a received transmission |
transMid.wav | Looping background noise during it |
transEnd.wav / transEnd1.wav / transEnd2.wav | Click-out — one of the three at random |
bgSiren.wav | Siren loop |
bgHeli.wav | Helicopter rotors |
bgDog.wav | K9 |
bgShot.wav is not here: it is the stock file behind the remappable GUNSHOT slot.
Background Sound Modes maps what Config.bgModeCheck returns to WAV files. Three ship: siren, helicopter, k9; unmapped modes play nothing. For a WAV per siren tone, return distinct modes:
if tone == 2 then return "sirenWail" end
if tone == 3 then return "sirenYelp" end
if tone > 0 then return "siren" end| Provider | Where the tone index is |
|---|---|
| tLS | bag['tels:sirenTone'] on Entity(vehicle).state |
| LVC | state_lxsiren — 1 Airhorn, 2 Wail, 3 Yelp, 4 Priority, 5+ custom |
| LVC Fleet | Set per vehicle in the VCF config files |
| ELS-FiveM | newstate — 1–3 are audible |
Siren detection
Which ELS resource bgModeCheck reads to decide a siren is on.
| Provider | Value |
|---|---|
| Auto — try each installed provider in order | auto (default) |
| tLS only | tels |
| Luxart Vehicle Control only | lvc |
| LVC Fleet only | lvc_fleet |
| ELS-FiveM only | els_fivem |
| JLS only | jls |
| Advanced Lighting System only | als |
| Native GTA siren only | native |
Skip detection — implement bgModeCheck yourself | custom |
Auto order is tLS → LVC / LVC Fleet → ELS-FiveM → JLS → ALS → native. Each returns "not my vehicle" for a car it does not know, so mixed fleets work. Force a re-poll with exports['tRadio']:NotifySirenChanged().
Every entry above detects a siren. None of them reports emergency lights — that read is tLS and tELS only, and it is what flashes a unit's blip. See why a blip flashes.
Radio FX
The DSP chain applied to incoming radio voice: mic → input gain → highpass → lowpass → compressor → limiter → saturation → mid EQ → output.
| Setting | Default | Range |
|---|---|---|
| Radio FX | true | Master switch |
| Distortion Mode | classic | classic hard-clip, tube smooth saturation |
| Highpass Cutoff | 250 Hz | 80–800 |
| Lowpass Cutoff | 3500 Hz | 1200–8000 |
| Compression | 60 | 0–100 |
| Distortion | 30 | 0–100 |
| Mid Boost | 2 dB | −12 to 12 |
| Input Gain | 1.65 | 0.5–3.0 |
| Problem | Fix |
|---|---|
| Too muffled, telephone-like | Raise Lowpass Cutoff to 4000–5000 |
| Too tinny or harsh | Lower Highpass Cutoff to 150–200 |
| Volume pumping | Lower Compression |
| Crackling or clipped | Lower Input Gain to 0.8–1.2, or lower Distortion |
P25 receive EQ
P25 audio is shaped by its own chain, separate from the analog sliders (Admin Panel → Settings → Radio FX → P25 FX): Low Cut removes rumble below its frequency; Box Dip cuts a narrow band of low-mid (350 Hz by default, −18 dB) that makes a close microphone sound like it is in a box; Presence lifts a band around 1.8 kHz (+5 dB) so words stay clear; High Cut removes everything above 2.8 kHz; Output Gain sets the level after all of it. Each "Width" (Q) is how narrow the cut or boost is — a higher number is a narrower band. The defaults were fitted against real police scanner recordings, so they make a clean microphone sound like scanner audio. If your players use thin or quiet microphones, raise Box Dip Gain toward 0 dB before touching anything else. These settings change only what the listener hears; nothing here goes on the air.
| Control | Default | Range |
|---|---|---|
| Low Cut | 350 Hz, width 0.4 | 100–800 Hz |
| Box Dip | 350 Hz, −18 dB, width 0.5 | 300–2000 Hz, −24 to +12 dB |
| Presence | 1800 Hz, +5 dB, width 1.5 | 800–3500 Hz, −12 to +12 dB |
| High Cut | 2800 Hz, width 1.2 | 1500–4000 Hz |
| Output Gain | 1.354 | 0.5–3.0 |
The default changed in 7.0, and your server may still be on the old one. The P25 voice engine and this curve both changed on 2026-10-16 and again on 2026-10-24. A fresh install gets the current curve. A server that had saved its audio settings on an earlier release keeps the values it saved, which run through the new voice engine and sound different from a fresh install on the same release. Reset P25 FX to shipped defaults (top of the P25 FX tab) writes the values this release ships; Use the 6.3 sound writes the curve 6.3 shipped (Low Cut 300 Hz, Box Dip 800 Hz −4 dB, High Cut 3800 Hz, Output Gain 1.15), which is brighter and keeps more of a thin microphone's body. Neither is saved until you press Save, and Discard puts back what you had. If a voice sounds harsh or full of static rather than thin, the sender's microphone input is too hot: lower it in Windows Sound → Recording → Properties → Levels, because the vocoder is sensitive to clipping.
Digital is separate and per-channel — there is no global P25 switch. Set Mode to P25 Digital and System type to IMBE or M17 codec2. The analog chain applies on top, and the session's first transmission has a brief warm-up.
Update server and clients together. A client from an earlier release decodes the new IMBE frames with the old engine and hears distorted, overloud audio.
About Codec 2. The M17 system type is Codec 2, copyright David Rowe and contributors, under the LGPL 2.1. It is a separate, replaceable module, and nothing else in tRadio is covered by that license.
Alerts
Admin Panel → Alerts. An alert banners every radio on the channel, and the first alert in the list is what the in-game Alrt key fires. Each has three phases with optional tones: activate, repeat (persistent only), deactivate.
| Field | Default | Description |
|---|---|---|
| Name | — | Display text on the radio |
| Color | — | Hex color of the banner |
| Persistent | false | Stays active until manually cleared |
| Tone | — | Single tone used for all phases |
| Multi-tone | off | Switches to separate activate / repeat / deactivate tones |
| Repeat every | random 5–10 s | Gap between repeats. Minimum 1000 ms |
| Show banner on repeat | true | Flash the banner on each repeat |
| Deactivate label | RESUME | Banner text shown on clearance |
| Deactivate color | #126300 | Color of the clearance banner |
| Tone Only | false | Play the tone with no visual banner |
| Channel filter | all channels | Restrict this alert to specific channels |
Four ship by default: SIGNAL 100, SIGNAL 3, Ping and Bonk.
Speakers
Admin Panel → Coverage → Speakers. World-placed speakers. A dispatcher can broadcast a tone to them, and a speaker can also play a channel's live traffic out loud for anyone standing near it. Grab coordinates with /tradio_debug coords; dispatchers use the Speakers button (see Working the board).
| Field | Default | Description |
|---|---|---|
| Position (X, Y, Z) | — | World coordinates |
| Heading | 0 | Prop rotation in degrees. Only affects the visible prop |
| Radius | 60 m | Audible reach, and who receives the tone. Applies from the next tone |
| Prop Model | none | Optional. Blank places no prop; the speaker still plays from its coordinates |
| Group | none | Speakers sharing a group name are one selectable target on the panel |
| Monitored Channels | none | Traffic on these channels plays out loud at the speaker, and anyone nearby hears it without a radio. Whichever channel goes active first holds the speaker until it falls quiet. Trunked and Direct channels cannot be monitored, and the picker does not offer them. A speaker with no monitored channel only plays dispatcher tones |
GPS blips
How a unit's GPS blip looks on the map. Set gpsDefaults in config/config.lua and include only
the keys you want to change — anything you leave out keeps the value below. Who can see a blip is
a codeplug permission, not a setting here.
| Key | Default | What it does |
|---|---|---|
groundSprite | 1 | Sprite for a unit on foot |
carSprite | 56 | Sprite for a unit in a car |
heliSprite | 422 | Sprite for a unit in a helicopter |
boatSprite | 427 | Sprite for a unit in a boat |
planeSprite | 423 | Sprite for a unit in a plane |
color | 38 | Blip color |
flashColor | 75 | Color a blip flashes during an emergency |
showHeading | { 'foot', 'car' } | Which unit types show a direction arrow instead of a dot |
Sprite and color numbers are GTA's own. A sprite that is not a number is ignored and the default is used, because a non-numeric sprite drops the blip entirely rather than falling back.
Why a blip flashes
A blip has one flash, and three independent things turn it on: the unit's panic, the unit's siren, and the unit's emergency lights. You cannot tell them apart from the map, so a flashing blip does not on its own mean a lightbar is running.
Emergency lights come from tLS or tELS only. tRadio calls
exports['tLS']:AreLightsActive(vehicle) — or the same export on tELS — on whichever of the two
is started, and reads nothing else. There is no native, no state bag and no other provider: on a
server running LVC, JLS, ELS-FiveM or ALS the lights half of the flash is always off, and any flash
those units show is coming from panic or from the siren. The siren detection
provider list is about sirens only and does not feed this.
The siren half is the siren, not the background bed. Config.bgModeCheck answers a background
sound mode, and the shipped one returns "helicopter" for a class-15 pilot and "k9" for a dog in
a passenger seat before it ever consults the siren providers. Only the "siren" mode flashes a blip,
so a helicopter or a K9 unit playing its bed with the lights and siren off does not flash. If you
write your own bgModeCheck, return "siren" for the states you want flashing the map and any other
mode name for the ones you do not.
Signal towers
Admin Panel → Coverage → Towers. Signal strength falls off with distance from the nearest tower, so coverage is a union of reaches, not a sum. Leave gaps where players should lose signal.
| Field | Description |
|---|---|
| Name | Label in the panel |
| Position (X, Y, Z) | World coordinates |
| Channels carried | Optional. The channels this tower relays. Blank carries every channel, which is what a tower has always done |
| Prop model | Optional. Blank places no prop; the tower still provides coverage |
A radio is read from the nearest tower that carries the channel it is on, so a fire repeater on one hill and a police repeater on another cover different ground. A channel that no tower carries is served by all of them, so leaving a channel off every list never silences it. A channel on the Direct / Simplex RF path ignores towers altogether.
Integrations
LB Phone and LB Radio
Fully managed in Settings → Advanced. Nothing to configure in config.lua, and the two are independent.
| Setting | Default | Description |
|---|---|---|
| LB Phone 911 Dial-In | Off | Players dial 911 from the in-game phone and get call status as notifications. Requires lb-phone |
| LB Radio Frequency Mirror | Off | Mirrors frequency, connection status and user count into LB Phone's Radio app. Read-only. Needs lb-radioapp or lb-radio started |
The dial-in carries a restart badge: each player gets one 911 entry point on connect, and FiveM cannot un-register a chat command mid-session. The mirror applies live.
CAD / MDT
Fully managed in Settings → Advanced, and all three toggles apply live.
| Setting | Default | Description |
|---|---|---|
| Let integrations write to your CAD | true | Lets resources named in Config.integrations run CAD operations through tRadio: create and close calls, attach units, run plates, write unit statuses. Turn it off and they get nothing, reads included. 911 and panic mirroring are unaffected |
| Mirror 911 Calls Into Your CAD | true | Every accepted 911 call becomes a CAD record with the caller's location |
| Mirror Panic Into Your CAD | true | Raise an emergency in your CAD when a unit hits their panic button |
There is nothing to install or key in. LACORE, SonoranCAD, ImperialCAD, wasabi_mdt, tk_mdt and ps-mdt are detected from the running resource.
Running two at once? Detection picks the one that can do the most, which is rarely wrong but is still a guess. Name the one you want in config/config.lua instead:
cad = {
-- 'lacore' | 'sonoran' | 'imperial' | 'wasabi' | 'tkmdt' | 'psmdt'
provider = 'sonoran',
},A name tRadio does not recognise, or one whose resource is not started, turns CAD writing off and says so in the console — it never falls through to the other CAD, because half a shift's calls landing in the system nobody is watching is worse than none landing at all.
Call types, merging and closing belong to your CAD. tRadio's 911 queue has no call-type field and no merge action; it writes the call into your CAD and the CAD owns it from there. The only call number tRadio keeps is the CAD's own. If renaming a call type or merging two calls behaves badly, that is the CAD's call editor, so report it to that CAD's author and say which CAD you run.
Panic is a call. Every CAD with a panic concept implements it as a call carrying an urgency marker. Those with a dedicated officer-in-distress alert get that instead.
ImperialCAD needs its resource started under exactly that name, with its own imperial_community_id and imperialAPI convars. A mirrored call is deleted only if it dies unanswered.
Other resources
Config.integrations is a list of resource names allowed to use tRadio's integration hooks: hearing transmissions, transmitting as a station, answering 911 calls, managing patches and running CAD operations. The default is an empty list, which allows nothing.
Config.integrations = { 'my-resource' }Restart tRadio after changing it. Everything the hooks do, and what naming a resource lets it do, is on the Integrations page.
911 hooks
Two optional hooks in config/sv_functions.lua, both with sensible defaults.
-- The caller ID a dispatcher sees. A real 911 dispatcher only gets a number, so this —
-- not getPlayerName — is what the call card shows. Default: the caller's real LB Phone
-- number, otherwise a stable 555-XXXX placeholder derived from their license.
Config.getCall911CallerNumber = function(serverId)
return "555-0142"
end
-- Fires when a call is placed while no dispatch panel is connected. The call still queues.
-- Default: chat-broadcast to every player with radio access.
-- `call` fields: callerName, callerUnitId, callerNumber, message, coords, frequency, createdAt.
Config.call911NoDispatcherFallback = function(call)
-- Discord webhook, NPC dispatch, or your own alerting here
endMulti-server federation
Run several game servers against one shared voice server and dispatch panel.
- Host (Server A) runs the voice backend and must set
exposeWeb = true - Satellites run no backend. They federate player, panic, tone and alert state to the host, needing outbound access only
-- host
Config = {
exposeWeb = true,
isSatelliteServer = false,
hostServerUrl = "", -- must stay empty on the host
authToken = "<20+ random characters>",
}
-- each satellite
Config = {
hostServerUrl = "http://203.0.113.10:7777", -- the host's public URL, port included
isSatelliteServer = true,
authToken = "<same value as the host>",
}A satellite with an empty hostServerUrl is rejected at startup with isSatelliteServer=true requires hostServerUrl to be set to the host server's URL.
Satellites pull config every 30 seconds, and 911 calls need the host's voice server.
Next steps
- Show your players and dispatchers how to work it: Usage
- Drive tRadio from another resource: API Reference
- Restyle the dispatch panel: Dispatch panel theming
- A setting is not doing what this page says: Troubleshooting
Tommy's Radio
Still stuck? Support can answer it directly.
Was this page helpful?
TIMMYG Studios