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
| Requirement | Detail |
|---|---|
| FiveM artifact | 4752 or newer. Check with version |
| tLib | v1.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 |
| OneSync | Required. onesync on in server.cfg |
| Public web port | 7.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 |
| Framework | Optional. ESX, QBCore, QBX, ND_Core, ox_core and nat2k15 auto-detect |
| Job | A 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
ensure tLib
ensure tRadioThat 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:
[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
- Join as a
police,sheriff,ambulanceorfireplayer - Press F6. If the screen is dark, click the power knob — the radio remembers being on
- The shipped
leocodeplug covers all four jobs, so a zone and channel are already selected. To pick another, pressZoneorChan, move with the arrows, pressSel - 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:
| Item | Shipped content |
|---|---|
| Zones | Statewide, Los Santos, Blaine County |
| Channels | DISP, C2C (trunked), 10-1, OPS-1 (encrypted) in each zone |
| Codeplugs | leo (NAC 141) and Scanner, granted to nobody |
| Job mapping | police, sheriff, ambulance, fire → leo |
| Alerts | SIGNAL 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:
| Panel | Address |
|---|---|
| Dispatch | http://<your server>:<server port>/tRadio/ |
| Admin | http://<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:
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:
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.
dispatchNacIdandadminPasswordlogins 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:
set tlib_telemetry 1That 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.
| Item | In the zip? | Holds your configuration |
|---|---|---|
config/config.lua | Yes | Yes |
config/cl_functions.lua | Yes | Yes |
config/sv_functions.lua | Yes | Yes |
config/locales.json | Yes | No — see below |
layouts/ | Yes | Yes |
data.json | No | Yes |
stop tRadio- Extract the new release zip somewhere temporary
- In the extracted folder, delete
config/config.lua,config/cl_functions.lua,config/sv_functions.luaandlayouts/ - In your tRadio folder, delete everything except those four and
data.json. This clears out files an older version left behind - Copy everything remaining in the extracted folder into your tRadio folder
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:
| What | What happens |
|---|---|
| Radio layouts were renamed | On 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 style | Not rewritten. A player whose saved style no longer exists gets the first style in the list and picks theirs again once. |
| Custom event names | Every 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.serverPort | Gone. The console names each one it finds. See Who gets a radio. |
| JSON layouts | A 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 name | 7.x name |
|---|---|
ARX-4000X | DRX-330 |
AFX-1500 | HLX-120 |
AFX-1500G | HLX-120G |
TXDF-9100 | KVD-880 |
ATX-8000 | QRX-720 |
ATX-8000G | QRX-720G |
ATX-8000H | QRX-720H |
ATX-NOVA | QRX-760 |
XPR-6500 | ZTR-540 |
XPR-6500S | ZTR-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
- Rename the starter zones and channels, then split the
leocodeplug: Zones and channels - Give your players radios: Framework integration
- Learn the radio and the panel: Usage
- Something not working: Troubleshooting
Tommy's Radio
Still stuck? Support can answer it directly.
Was this page helpful?
TIMMYG Studios