Files you can edit
| File | What's in it |
|---|
config/config.lua | Language, framework, models, dial, restricted channels, zones, calls, service jobs, 10-codes, keys and commands. |
config/security.lua | Serial numbers, locking, muting states, log and watchdog. |
config/encryption.lua | Encrypted channels, decryptor and private band. |
config/hud.lua | Mouse, HUD, favorites, quick keys and alias. |
config/hooks.lua | Hooks to connect your dispatch, callsigns, player states and logs. |
locales/*.json | Every text. |
The rest of the resource is encrypted (Cfx.re escrow).
After changing anything, restart the resource (restart eleven_radio) or the server.
Language
Config.Locale = 'en' -- 'en' or 'es': any file in locales/
For another language, copy locales/en.json under a new name (for example fr.json), translate it and set Config.Locale = 'fr'. Screen, menu and 10-code texts live there too.
config.lua
General
| Key | Default | What it does |
|---|
Config.Locale | 'en' | Text language. |
Config.Framework | 'auto' | 'auto', 'qbox', 'qbcore' or 'esx'. |
Config.Debug | false | Prints the radio's relevant actions to the console (unless you define Config.Hooks.Log). |
Config.DefaultVolume | 6 | Starting volume of the knob (0–10). |
Models
Config.Models = {
pl3 = { item = 'radio', label = 'Patrolink PL-3', handProp = 'prop_cs_hand_radio' },
pl7 = { item = 'radio_pl7', label = 'Patrolink PL-3T', handProp = 'prop_cs_hand_radio' },
}
| Field | What it does |
|---|
item | ox_inventory item name. Change it if your radio item is named differently. |
label | Model name. |
handProp | Prop held in the hand while the radio is open. |
pl3 and pl7 are each model's internal id: don't change them.
Dial and channels
| Key | Default | What it does |
|---|
Config.Dial.maxFrequency | 500 | Highest frequency players can tune. |
Config.Dial.decimals | 2 | Frequency decimals. |
Config.RestrictedChannels | 1–10 for police and ambulance | Channel → jobs allowed while on duty. See Channels. |
Config.Zones | 4 zones | Name of each PL-3T zone and its 16 channels. |
Private calls (PL-3T)
| Key | Default | What it does |
|---|
Config.PrivateCalls.enabled | true | Turns private calls on. |
Config.PrivateCalls.channelBase | 6000000 | Start of the reserved channel range. |
Config.PrivateCalls.channelCount | 200 | Maximum simultaneous calls. |
Config.PrivateCalls.ringSeconds | 20 | Seconds it rings before "no answer". |
Config.PrivateCalls.firstUnitCode | 101 | First unit code handed out each session. |
Service jobs, codes and cooldowns
| Key | Default | What it does |
|---|
Config.ServiceJobs | police (LSPD), ambulance (EMS) | Jobs with their own emergency alert, 10-codes and callsigns. control is the dispatch name. |
Config.TenCodes | { 4, 6, 7, 8, 9, 10, 15, 20, 23, 32, 41, 50, 52, 97, 98 } | Codes with a description (texts in locales → tencodes). |
Config.Cooldowns.emergency | 60 | Seconds between emergencies. |
Config.Cooldowns.tenCode | 4 | Seconds between 10-codes. |
Config.Cooldowns.privateCall | 5 | Seconds between private calls. |
Keys and commands
| Key | Default | What it does |
|---|
Config.Keys.channelDown | 'LBRACKET' | Previous channel with the radio closed. |
Config.Keys.channelUp | 'RBRACKET' | Next channel with the radio closed. |
Config.Keys.ptt | '' (unbound) | Patrolink's own push-to-talk key for the dial, with the radio open or put away. |
Config.Commands.* | see Commands | Name of each chat command. |
Config.HandProp | bone 28422 | Bone, position and rotation of the hand prop. |
Keys are only the starting value: each player can rebind them in FiveM's settings, and an existing binding wins.
security.lua
| Key | Default | What it does |
|---|
Config.Security.enabled | true | Turns the whole security module on. |
serialPrefixes | { pl3 = 'PL3', pl7 = 'PL7' } | Serial number prefix per model. |
lockDelay | 90 | Seconds between the lock order and the radio going dead. |
lockJobs | police, ambulance | Jobs that can lock radios (on duty). |
lockRateLimit | 6 | Lock orders per player per minute. |
blockedStates | cuffed, unconscious, handsUp all true | States that mute the radio. |
log.capacity | 500 | Transmissions kept in memory. |
log.minSeconds | 1 | Shortest transmission that gets logged. |
log.show | 30 | Rows shown by /radiolog. |
log.maxSeconds | 600 | Longest duration logged. |
logJobs | police | Jobs whose boss can read the log. |
Config.Watchdog.enabled | true | Turns the server watchdog on. |
Config.Watchdog.interval | 1500 | Milliseconds between sweeps. |
encryption.lua
Encryption
| Key | Default | What it does |
|---|
Config.Encryption.enabled | true | Turns encrypted channels and the decryptor on. |
channels | the restricted channels | Channel → jobs with access. Every RestrictedChannels entry is added to it. |
item | 'radio_decryptor' | Decryptor item. |
uses | 3 | Attempts per decryptor. |
listenSeconds | 120 | Listening time after breaking the encryption. |
cooldown | 900 (15 min) | Seconds between attempts by the same player. |
rounds | 5 rounds | lib.skillCheck rounds, easiest first. |
keys | { 'w', 'a', 's', 'd' } | Minigame keys. |
minDuration | 3 | Minimum minigame length in seconds (anti-cheat). |
resultTimeout | 90 | Seconds the server waits for the result. |
Private band
| Key | Default | What it does |
|---|
Config.PrivateBand.enabled | true | Turns the private band on. |
from / to | 300.00 / 399.99 | Band range. |
maxPerOwner | 2 | Channels per character. |
password.min / password.max | 4 / 24 | Password length. |
maxFails | 3 | Wrong attempts in a row before the cooldown. |
failCooldown | 60 | Cooldown in seconds after failing. |
expireDays | 30 | Days without the owner joining before the channel is released. |
promptDelay | 700 | Milliseconds before asking for the password (lets the selector knob pass by). |
hud.lua
Mouse
| Key | Default | What it does |
|---|
Config.Mouse.rawKey | 0xA4 | Key that releases or takes back the mouse (left Alt). |
Config.Mouse.jsKey | 'AltLeft' | Same key as seen by the interface. |
Config.Mouse.tapMs | 300 | Longest press that still counts as a "tap". Anything longer is talking. |
Config.Mouse.controls | list | Controls kept active on foot with the radio open. |
Config.Mouse.vehicleControls | list | Controls kept active while driving. |
HUD
| Key | Default | What it does |
|---|
Config.Hud.enabled | true | Shows the HUD while the radio is on. |
Config.Hud.position | 'top-right' | Starting corner: top-left, top-right, middle-left, middle-right, bottom-left, bottom-right. |
Config.Hud.maxSpeakers | 3 | Names at once; the rest show as "+N". |
Config.Hud.lingerMs | 450 | How long a name stays after releasing PTT. |
Config.Hud.nameCacheSeconds | 60 | Name cache. |
Config.Hud.noticeMs | 2200 | How long HUD notices stay. |
Favorites and quick keys
| Key | Default | What it does |
|---|
Config.Favorites.maxFavorites | 12 | Favorites per character and model. |
Config.Favorites.maxRecents | 5 | Recent channels. |
Config.Favorites.countCache | 5 | Seconds the server caches how many people are on a channel. |
Config.Favorites.countRefresh | 6000 | Milliseconds between list refreshes on screen. |
Config.QuickKeys | true | Registers next/previous favorite and last channel keys (no default key). |
Alias
| Key | Default | What it does |
|---|
Config.Alias.min / max | 2 / 14 | Alias length. |
Config.Alias.cooldown | 3 | Seconds between alias changes. |
Config.Alias.phonetic | ADAM, BOY, CHARLES… | Unit alphabet words: followed by a number they'd look like a callsign, so they're rejected. |
Config.Alias.reserved | LSPD, EMS, POLICE, DISPATCH… | Words no alias may contain. |
Add your own agencies and services to reserved so nobody can impersonate them.
hooks.lua
Each hook is a function in Config.Hooks. Left as nil, the radio uses its built-in behavior. Arguments and examples: Integration.
| Key | Side | Default | What it does |
|---|
Config.Hooks.ServicePanic | Client | empty function | Emergency from an on-duty service player → your dispatch. |
Config.Hooks.KeepRadioEnabled | Client | nil | true if another script also uses the player's pma-voice radio. |
Config.Hooks.IsCuffed | Client | nil | Whether the player is cuffed. |
Config.Hooks.IsUnconscious | Client | nil | Whether they're unconscious or dead. |
Config.Hooks.HandsUp | Client | nil | Whether their hands are up. |
Config.Hooks.Notify | Client | nil (ox_lib) | Notifications. |
Config.Hooks.GetCallsign | Server | nil (character name) | The unit's callsign. |
Config.Hooks.IsDispatcher | Server | nil (nobody) | Dispatch operators who can lock radios. |
Config.Hooks.OnTenCode | Server | empty function | A 10-code was sent. |
Config.Hooks.OnCivilianEmergency | Server | empty function | Emergency from someone who isn't an on-duty service player. |
Config.Hooks.Log | Server | nil (console with Config.Debug) | The radio's relevant actions. |
Config.Hooks.IsBlocked | Server | nil (isCuffed, isDowned, isDead state bags) | States that block the radio, for the watchdog. |
Config.Hooks.WatchdogExempt | Server | nil | Players the watchdog should leave alone. |