RM-ScriptsRM-SCRIPTS
Car Radio

Installation

Install rm-carradio on your server.

Installation

Requirements

  • ox_lib — start before rm-carradio (manifest declares dependency 'ox_lib')

Step 1 — Download

Clone or download from GitHub and place the folder in your resources directory as rm-carradio.

Step 2 — server.cfg

ensure ox_lib
ensure rm-carradio

Step 3 — Configure stations

Edit config.lua:

OptionDescription
Config.EnabledMaster toggle
Config.OpenKeyHold-to-open keybind (ox_lib)
Config.RadioStationsList: id, name, frequency, gtaStation, icon (Lucide name)

The client prepends an OFF row in the UI — you only edit the GTA station table.

Icons: see lucide.dev/icons.

Step 4 — Web UI (if needed)

If you change the React app or clone without web/build:

cd web
pnpm install
pnpm build

Step 5 — Restart

Hold your configured key while in a vehicle to open the radio.

Client exports

exports['rm-carradio']:PlayStation('pop')
exports['rm-carradio']:StopStation()

local id = exports['rm-carradio']:GetCurrentStation()
local open = exports['rm-carradio']:IsRadioOpen()
ExportReturnsDescription
PlayStationPlay configured station ('radio_off' turns radio off)
StopStationStops current station / clears state
GetCurrentStationstring | nilCurrent station id or nil
IsRadioOpenbooleanWhether the NUI is visible