📻 Tune in. Hold PTT. Talk.
A comms radio that looks and feels like the real thing. Pick a frequency, hold push-to-talk and everyone on that channel hears you, while your character raises the radio to their mouth.
Why you'll want it
- 📟 A radio, not a menu: casing, antenna, knobs, amber LCD and a PTT button your players actually click.
- 🎚️ Any channel you need: 1.0 to 999.9 MHz, plus six saved presets per player.
- 🎙️ Keeps your voice system: pma-voice out of the box, or plug in your own through a custom backend.
- 🚫 Roleplay rules built in: no radio while dead or cuffed, and you decide what else blocks it.
- 🔌 Light to run: no database, plus client and server exports for your other resources.
First release (v1.0). Report any issue and we fix it.
What you get
- The rd_walkie resource (v1.0) with its NUI.
- Item definitions for ox_inventory and qb-core (no image included: add your own).
- English and Spanish texts in locales/.
- A commented config.lua.
Features
Interface
- Volume and channel knobs, power button, dial arrows, LCD with RX/TX lights and a PTT button.
- Brand plate you can rename (BrandName / BrandModel).
- Type a frequency, drag or scroll the knob, or use the arrows (0.1 MHz steps).
- Escape closes the window; the radio stays on and keeps receiving.
Presets
- Six slots per player, saved on their client (KVP) together with frequency, volume and power state.
- Four named example presets (GENERAL, EMS, POLICE, MECHANIC) are loaded the first time.
- Right-click a preset to rename or clear it.
Voice backends
- pma-voice (default): channel = floor(frequency × 10).
- custom: fill Config.Voice.Custom (SetChannel, SetVolume, SetPttAllowed, StartTalk, StopTalk) and have your voice system call SetTransmitting and SetReceiving.
- none: UI only, no voice (for testing).
Prop, sounds and blocking
- Vanilla walkie prop in hand and a talk animation while transmitting; bone, offset and rotation are configurable.
- GTA frontend beeps on open, close, power and tuning (each can be switched off).
- Blocked when dead or cuffed (state-bag names configurable), optionally when injured, plus your own Config.CustomBlocked function.
How it works
A player uses the radio item (or your optional key), switches it on and tunes in. While they hold PTT, rd_walkie routes their voice to the matching channel through pma-voice or your backend. If the item leaves their inventory, or they die or get cuffed, the radio switches off.
Configuration
- Config.Voice.Backend: 'pma-voice' (default), 'custom' or 'none'.
- Item: RadioItem = 'radio', RequireItem = true, OpenKey = '' (empty = item or export only).
- Frequencies: MinFrequency 1.0, MaxFrequency 999.9, FrequencyStep 0.1, DefaultFrequency 100.0.
- Volume: default 60, range 5 to 100. PresetsCount 6 and DefaultPresets.
- BlockedStates, CustomBlocked, prop, animation, sounds and the controls disabled while the radio is open.
Requirements
- Required: ox_lib, rd_bridge (free core). No database.
- Optional: pma-voice (voice), ox_inventory (local item check; without it the item is checked through a server callback via rd_bridge), rd_carmenu (Walkie tab).
- Without pma-voice you need the 'custom' backend for voice; 'none' is UI only.
Install in 5 steps
- 1. Copy rd_walkie into your resources; start ox_lib and rd_bridge first (and pma-voice if you use it).
- 2. Add the item from items/ox_inventory.lua or items/qb-core.lua (no image included: add your own).
- 3. Add ensure rd_walkie to server.cfg.
- 4. Edit config.lua: Config.Voice.Backend, frequencies, presets, blocking states.
- 5. Use the item (or Config.OpenKey) to open the radio.
Compatibility
QBCore · Qbox · ESX · standalone through rd_bridge (adapters reviewed against each resource's official documentation). With rd_carmenu running, players get an optional Walkie tab (power, frequency, open the radio). rd_walkie does not need rd_carradio or rd_boombox: it is a comms radio, not a car stereo.
Protected with Cfx.re Asset Escrow; config.lua, locales, the UI files (web/), SQL, items and docs stay editable.
Exports & events
- Client exports: OpenRadio, CloseRadio, UseRadioItem, IsRadioOpen, IsRadioPowered, GetRadioFrequency, SetRadioFrequency, PowerRadioOn, PowerRadioOff, SetExternalActive(bool) (lets another resource, such as a tablet, use the channel without opening the radio), SetTransmitting, SetReceiving.
- Server export: ForceLeaveRadio(serverId) for admins. Client event: rd_walkie:client:use.
- No chat commands. Extra PTT binding in Settings → Key Bindings → FiveM ("Radio · Talk on radio").
FAQ
- Nobody can hear me. Why? Both players must be on the same frequency, and pma-voice must be running (or your custom backend wired up).
- Being injured doesn't block the radio. How do I fix it? Turn on blockOnInjuredGround and add your state-bag name to injuredStateBags, or use Config.CustomBlocked.
- Can I use another voice system? Yes: set the backend to 'custom' and connect your system as described above.
- Can it work without an item? Yes: set RequireItem = false and open it with OpenKey or the OpenRadio export.
- Has it been tested on a live server? Not yet. This is the first release (v1.0): the code was syntax-checked and reviewed by hand. Report any issue and we fix it.
🇪🇸 En español
📻 Sintoniza. Pulsa PTT. Habla.
Una radio de comunicaciones que se ve y se maneja como una de verdad. Elige una frecuencia, mantén el botón de hablar y todo el canal te oye mientras tu personaje se lleva la radio a la boca.
Por qué lo querrás
- 📟 Una radio, no un menú: carcasa, antena, ruedas, pantalla LCD ámbar y un botón PTT que tus jugadores pulsan de verdad.
- 🎚️ Todos los canales que necesites: de 1.0 a 999.9 MHz y seis presets guardados por jugador.
- 🎙️ Respeta tu sistema de voz: pma-voice de serie, o el tuyo mediante un backend propio.
- 🚫 Reglas de rol incluidas: sin radio si estás muerto o esposado, y tú decides qué más la bloquea.
- 🔌 Ligero: sin base de datos y con exports de cliente y servidor para tus otros recursos.
Primera versión (v1.0). Si encuentras cualquier fallo, avísanos y lo arreglamos.
Qué incluye
- El recurso rd_walkie (v1.0) con su interfaz NUI.
- Definiciones del ítem para ox_inventory y qb-core (sin imagen: añade la tuya).
- Textos en español e inglés en locales/.
- Un config.lua comentado.
Funciones
- Interfaz: ruedas de volumen y canal, botón de encendido, flechas de dial, LCD con luces RX/TX, botón PTT y placa de marca editable (BrandName / BrandModel). Escribe la frecuencia, gira la rueda (arrastrando o con el ratón) o usa las flechas (pasos de 0.1 MHz). Escape cierra la ventana y la radio sigue encendida.
- Presets: seis por jugador, guardados en su cliente (KVP) junto con frecuencia, volumen y encendido. La primera vez se cargan cuatro de ejemplo (GENERAL, EMS, POLICE, MECHANIC). Clic derecho para renombrar o vaciar.
- Voz: pma-voice por defecto (canal = floor(frecuencia × 10)); custom con las funciones de Config.Voice.Custom y los exports SetTransmitting / SetReceiving; o none, solo interfaz.
- Prop, sonidos y bloqueos: walkie vanilla en la mano y animación al hablar (hueso, posición y rotación configurables); pitidos de GTA al abrir, cerrar, encender y sintonizar; bloqueo si estás muerto o esposado (nombres de state bag configurables), opcionalmente herido, y tu propia función Config.CustomBlocked.
Cómo funciona
El jugador usa el ítem de radio (o tu tecla opcional), la enciende y sintoniza. Mientras mantiene PTT, rd_walkie envía su voz al canal correspondiente con pma-voice o tu backend. Si pierde el ítem, muere o lo esposan, la radio se apaga.
Configuración
- Config.Voice.Backend: 'pma-voice' (por defecto), 'custom' o 'none'.
- Ítem: RadioItem = 'radio', RequireItem = true, OpenKey = '' (vacío = solo ítem o export).
- Frecuencias: de 1.0 a 999.9 MHz, paso 0.1, inicial 100.0. Volumen: 60 por defecto, de 5 a 100. PresetsCount 6 y DefaultPresets.
- BlockedStates, CustomBlocked, prop, animación, sonidos y controles bloqueados con la radio abierta.
Requisitos
- Obligatorios: ox_lib, rd_bridge (núcleo gratuito). Sin base de datos.
- Opcionales: pma-voice (voz), ox_inventory (comprobación local del ítem; sin él, el ítem se comprueba con un callback de servidor vía rd_bridge), rd_carmenu (pestaña Walkie).
- Sin pma-voice necesitas el backend 'custom' para la voz; 'none' es solo interfaz.
Instalación en 5 pasos
- 1. Copia rd_walkie a tus recursos; arranca antes ox_lib y rd_bridge (y pma-voice si lo usas).
- 2. Añade el ítem de items/ox_inventory.lua o items/qb-core.lua (sin imagen: pon la tuya).
- 3. Añade ensure rd_walkie al server.cfg.
- 4. Edita config.lua: Config.Voice.Backend, frecuencias, presets y estados que bloquean.
- 5. Usa el ítem (o Config.OpenKey) para abrir la radio.
Compatibilidad
QBCore · Qbox · ESX · standalone mediante rd_bridge (adaptadores revisados contra la documentación oficial de cada recurso). Con rd_carmenu tendrás una pestaña Walkie opcional (encender, frecuencia, abrir la radio). No necesita rd_carradio ni rd_boombox: es una radio de comunicaciones, no un autorradio.
Protegido con Cfx.re Asset Escrow; config.lua, locales, la interfaz (web/), SQL, ítems y documentación siguen siendo editables.
Exports y eventos
- Exports de cliente: OpenRadio, CloseRadio, UseRadioItem, IsRadioOpen, IsRadioPowered, GetRadioFrequency, SetRadioFrequency, PowerRadioOn, PowerRadioOff, SetExternalActive(bool) (otro recurso, como una tablet, usa el canal sin abrir la radio), SetTransmitting, SetReceiving.
- Export de servidor: ForceLeaveRadio(serverId) para administración. Evento de cliente: rd_walkie:client:use.
- Sin comandos de chat. PTT adicional en Ajustes → Asignación de teclas → FiveM («Radio · Hablar por radio»).
Preguntas frecuentes
- ¿Por qué no me oye nadie? Los dos jugadores deben estar en la misma frecuencia y pma-voice debe estar arrancado (o tu backend propio conectado).
- Estar herido no bloquea la radio. ¿Cómo lo arreglo? Activa blockOnInjuredGround y añade el nombre de tu state bag en injuredStateBags, o usa Config.CustomBlocked.
- ¿Puedo usar otro sistema de voz? Sí: pon el backend en 'custom' y conéctalo como se explica arriba.
- ¿Funciona sin ítem? Sí: pon RequireItem = false y ábrela con OpenKey o el export OpenRadio.
- ¿Está probado en un servidor real? Todavía no. Es la primera versión (v1.0): se ha comprobado la sintaxis y se ha revisado el código a mano. Si encuentras cualquier fallo, avísanos y lo arreglamos.