OverflowOverflow
Radio

Installation

Installing of_radio is a matter of ensuring it after its dependencies, plus a small pma-voice patch. There is no SQL to import and no manual database setup.

Install dependencies

Make sure your framework, ox_lib, oxmysql and pma-voice are running before continuing.

Drop of_radio in your resources folder

Head to Portal CFX and download the latest version of of_radio, then extract it into your resources folder.

Patch pma-voice

-- file contents...

-- Paste at the [END] of the file
exports("playerTargets", addVoiceTargets)
exports("toggleVoice", toggleVoice)
exports("playMicClicks", playMicClicks)

No such export pma-voice

Skip this and the server throws a "no such export" error on pma-voice when the radio loads.

Ensure it after the dependencies

server.cfg
ensure qb-core      # your framework
ensure ox_lib
ensure oxmysql
ensure pma-voice

ensure of_radio     # <-- must come last

Start the server

The of_radio_frequencies and of_radio_user_settings tables are created automatically on first start, so you only need oxmysql pointed at a working database.

Press F2 (or run /radio) to open the radio.

Nothing opens? A player only receives a work frequency if their job is listed in Config.WorkFrequencies, and by default the radio requires a radio item in the inventory. See Configuration.

On this page