Skip to content

Installation

Install Tommy's Radio and get a player keying up — requirements, browser access, what ships preconfigured, and the update procedure.

Four steps to a player on a working channel. tRadio ships a starter configuration, so there is nothing to set up first — no SQL import, no database, no port to open, no account.

The same install, start to finish, in video. Check Requirements first either way — a tLib below the minimum is the one thing that fails before you reach step 1.

The video stops at a working radio in game. The browser panels need no extra work either — see Reaching the panels in a browser — and in game /tradio → Quick opens both.

Requirements

RequirementDetail
FiveM artifact4752 or newer. Check with version
tLibv1.2.0+ for 7.2 (its callbacks and request limits use tLib features that 1.1 does not have; 7.1 needs v1.1+); v1.0+ for 7.0 and older. A tLib below the minimum stops tRadio from starting and the console names the version it needs. Download the file named tLib.zip from the release — not "Source code", which has no built files
OneSyncRequired. onesync on in server.cfg
Public web port7.1 and newer: none required — the panels answer on the FiveM server port out of the box. 7.0 and older: open tLib's port (default 7777). On 7.1 that port stays optional, for the full-capability dispatch panel, Discord login, or the desktop app's automatic updates
FrameworkOptional. ESX, QBCore, QBX, ND_Core, ox_core and nat2k15 auto-detect
JobA character with police, sheriff, ambulance or fire to test with

Always pair a tRadio release with the newest tLib; starting with an older one fails loudly. A framework not on the list runs through the hooks in config/sv_functions.lua — see Framework integration.


Install

Extract the files

Transfer the release zip and unzip it on the server. Place the extracted folder in resources/.

Name the folder anything — exports['tRadio']:… still finds it. Use your real folder name in server.cfg.

Add both to server.cfg

txt
ensure tLib
ensure tRadio

That is the whole of it — there is no convar to set. tLib must load before tRadio, and you use your real folder name, for example ensure [tScripts]/tRadio.

Restart the server

With the defaults, the tRadio banner reports the panel URL. With exposeWeb = false you get this line instead:

text
[Radio-Server] Radio ready over FiveM net events; web exposure disabled (no HTTP listener or tLib registration)

Either line means the radio is up.

Key up

  1. Join as a police, sheriff, ambulance or fire player
  2. Press F6. If the screen is dark, click the power knob — the radio remembers being on
  3. The shipped leo codeplug covers all four jobs, so a zone and channel are already selected. To pick another, press Zone or Chan, move with the arrows, press Sel
  4. Hold B and speak It works if the display shows TX: with your name while you hold B. Hover any button or softkey to see what it does.

If the radio does not open at all, the server has not granted radio access. See Who gets a radio.

Open the admin panel

Everything a server's radios do — zone and channel names, codeplugs, tones, towers, alerts — is edited here, not in a config file.

In a browser, which is the way it is meant to be used: go to http://<your server>:<server port>/tRadio/admin and sign in with the adminPassword from config/config.lua. Channel renaming is Zones & Channels.

In game, type /tradio. Admin Panel appears in the sidebar for a player holding the tradio.admin ACE, and with a line saying what is missing for a player who does not. /tradio on its own is the radio's settings dialog, not the admin panel — four of our own staff answered "admin panel" to a customer who was looking in there for eight days.

tlib.admin does not count: it gives supervisor keys on the radio and the 3D Prop Editor, not this panel. Grant it with

add_ace group.admin tradio.admin allow

in server.cfg, or by typing the same line into the live server console, and put yourself in that group. Without a grant nobody can open either panel from in game; browser and desktop-app logins are unaffected.


What ships preconfigured

On first start tRadio writes a data.json holding a working starter configuration:

ItemShipped content
ZonesStatewide, Los Santos, Blaine County
ChannelsDISP, C2C (trunked), 10-1, OPS-1 (encrypted) in each zone
Codeplugsleo (NAC 141) and Scanner, granted to nobody
Job mappingpolice, sheriff, ambulance, fire → leo
AlertsSIGNAL 100, SIGNAL 3, Ping, Bonk
Announcement groups* DISP and * C2C, each spanning all three zones

All of it is editable live in the admin panel — /tradio → Quick opens both panels in game. Only config/config.lua and the two function-hook files need a restart tRadio.

The admin panel opens on Overview, which tracks what a new server still needs. Two items you tick by hand: job mappings and the dispatch login.

data.json is written only when none exists, so an update never overwrites it.

data.json belongs to one server. A second server running the same resource starts with the shipped starter zones and has to be set up again, unless you federate it to the first (satellites pull zones, channels, codeplugs, tones and settings from the host). Copying one server's data.json to another works, but the two are separate from that moment.

Reaching the panels in a browser

Already working. Both panels are served on the FiveM server port — the one your players connect through — so there is nothing to open, forward or configure:

PanelAddress
Dispatchhttp://<your server>:<server port>/tRadio/
Adminhttp://<your server>:<server port>/tRadio/admin

Your server port is whatever endpoint_add_tcp declares — 30120 on a default install. tLib prints the address at startup, and its hub at /tLib/ lists both. Paths are case-insensitive, so /tradio/admin works too. In game, /tradio → Quick opens either one without a browser at all.

The dispatch panel used to live at /dispatch. That older address still redirects on tLib's own port, but not on the FiveM server port — here, use the addresses above. A desktop app whose saved endpoint still ends in /dispatch has to be re-pointed at /tRadio: it will load the panel and then fail to log in, because the redirect changes the kind of request the login makes. It is the one upgrade step that is not automatic.

What makes it work is the shipped default in config/config.lua:

lua
exposeWeb = true,

exposeWeb = false stops serving the panels entirely; it needs a resource restart. The in-game radio is unaffected either way. showDispatchInHub and showAdminInHub control hub listing only — hiding an entry does not make it private, and the address still answers.

On 7.0 and older

Before 7.1 there was no server-port door: tLib always bound its own listener and that port had to be reachable. If you are on 7.0 or older, that is still how it works — set the port and the address clients should use, above ensure tLib in server.cfg, and open and forward that port:

txt
set tlib_http_port 7777
set tlib_http_public_url "http://203.0.113.10:7777"

203.0.113.10 stands for your own public address or hostname — copy the one players use to join, not this. tLib recognises the documentation addresses (203.0.113.x, example.com, your-server-address), refuses to publish one, and names it in the console.

The panels are then at http://203.0.113.10:7777/dispatch and /dispatch/admin (with your own address in place of that one).

Upgrading to 7.1 does not break this: those two lines keep working and keep the listener, which is still the full-capability path. The difference is that they are now optional.

Never open tRadio's own loopback port. It is internal, it changes every restart, and forwarding it does nothing.

When to use tLib's port instead

The server-port route has four real limits:

  • No WebSocket. The dispatch panel falls back to long-polling. It works, at roughly five times the latency — measured at 58 ms against 11 ms, median.
  • 8 KB per message from the browser. A larger one drops the connection, so a big upload through the admin panel can fail.
  • Discord login on the panels needs tLib's own port open. The redirect Discord sends a dispatcher back to is built from tLib's published address, not from the door the request came in on. dispatchNacId and adminPassword logins work on either door.
  • The desktop app's automatic updates need it too, for the same reason: the update download URL the app is handed points at tLib's listener. The app works through the server port otherwise — login, voice and all.

tLib's own listener — optional, default port 7777, opened by hand — has none of them, and the path is identical, so a link you saved works on either door: http://<your server>:7777/tRadio/admin.

Take it for a dispatch panel that is worked all day, or for a custom domain or HTTPS. tLib's advanced listener guide is the whole procedure: the port to open, tlib_http_public_url, and the reverse-proxy notes.

useLegacySocketTransport is deprecated and stays false. A federation host has to expose an address its satellites can reach — either door does that — and satellites connect outbound, needing no inbound port of their own.

Secrets

The panels are reachable from the moment you start the server, so set a strong dispatchNacId and adminPassword early — and an authToken as well if you run federation. Leave adminPassword blank and tRadio generates one on first start and writes it into config/config.lua, so open that file to read it — it is not printed in the console. The one exception: with Discord admin login configured (guildId plus at least one admin role), no password is generated and Discord is the only way in. If the resource folder is read-only, the console says the password could not be written and the panel has no login until you set one yourself.

Optional: help us fix tRadio

tRadio 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 license key, no server name, no player names or identifiers, and tradio_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.

What it will not do is replace a ticket. Warnings carry a kind and a code but no message text, so the line you can actually read in your console is the line we cannot see. If something is wrong on your server, still tell us.

Updating tRadio

Six items hold your configuration. Five still ship in the release zip, so delete them from the new copy before anything is copied anywhere.

ItemIn the zip?Holds your configuration
config/config.luaYesYes
config/cl_functions.luaYesYes
config/sv_functions.luaYesYes
config/locales.jsonYesNo — see below
layouts/YesYes
data.jsonNoYes
  1. stop tRadio
  2. Extract the new release zip somewhere temporary
  3. In the extracted folder, delete config/config.lua, config/cl_functions.lua, config/sv_functions.lua and layouts/
  4. In your tRadio folder, delete everything except those four and data.json. This clears out files an older version left behind
  5. Copy everything remaining in the extracted folder into your tRadio folder
  6. start tRadio

Step 3 is the one that matters: after it, nothing in the extracted folder can replace your configuration.

config/locales.json is the one config file an update replaces

It is not in step 3, so the new copy lands and replaces yours. If you have translated or reworded it, keep a copy before updating and re-apply your changes.

Moving from 6.x to 7.x

What 7.0 renamed or removed, and what tRadio does about each when it finds your old files:

WhatWhat happens
Radio layouts were renamedOn start, tRadio rewrites the old names in your data.json (server default styles, each codeplug's allowed styles and default styles) to the layout that replaced each, and prints every rewrite in the console. A data.json.pre-layout-rename copy of the file is kept.
Players' own saved styleNot rewritten. A player whose saved style no longer exists gets the first style in the list and picks theirs again once.
Custom event namesEvery event went from radio: to tradio:. A script of yours that triggers or handles the old names has to be renamed. A tRadio 6.x client cannot talk to a 7.x server at all, so make sure only one tRadio is started.
JOB_CODEPLUG_MAP, Config.jobCodeplugs, Config.serverPortGone. The console names each one it finds. See Who gets a radio.
JSON layoutsA layout is a folder with a ui.html now. A marketplace layout installed before 7.0 reports has no ui.html: install it again from the marketplace.

The layout names:

6.x name7.x name
ARX-4000XDRX-330
AFX-1500HLX-120
AFX-1500GHLX-120G
TXDF-9100KVD-880
ATX-8000QRX-720
ATX-8000GQRX-720G
ATX-8000HQRX-720H
ATX-NOVAQRX-760
XPR-6500ZTR-540
XPR-6500SZTR-540S

SWX-250 is new in 7.x. A name is rewritten only when the old layout is not installed and the new one is, so a layout of your own that happens to be called ATX-8000 is left alone.

If the style picker is empty, the console says No radio layouts were found: either layouts/ did not survive the upload (extract the zip again), or tLib is older than this tRadio and cannot list the folder (it says so; update tLib).

Factory reset: stop the resource, delete data.json, start it again. You lose everything you changed. The Load Defaults buttons on the Zones, Alerts and Codeplugs pages restore the same starter content one page at a time.

Next steps

Still stuck? Support can answer it directly.

Was this page helpful?