NullSect
Systems nominal

Docs / Radio / Installation

Installation — ns-radio

  1. Put the ns-radio folder into your resources (e.g. resources/[nullsect]/ns-radio).

  2. Add to server.cfg after pma-voice and your framework:

    ensure pma-voice
    ensure ns-radio
    
  3. Stop the radio script you used before (qb-radio, mm_radio, …). Two radio scripts on the same item fight over pma-voice's channel.

  4. Point the radio item to ns-radio.

    • ox_inventory (ox_inventory/data/items.lua):

      ['radio'] = {
          label = 'Radio',
          weight = 1000,
          allowArmed = true,
          consume = 0,
          client = { event = 'ns-radio:cl:use' },
      },
      
    • qb-core / ESX: nothing to do, ns-radio registers the item as usable.

    • No item: Config.Item.required = false and use /radio.

  5. Optional: Config.Locale = 'tr', your locked ranges in Config.Channels.restricted, a default key in Config.Keys.open.

  6. Restart the server. No database setup is needed.

Verification

CheckExpected
Server consoleN locked frequencies registered with pma-voice and [ns-radio:SV] [INFO] ready (framework=qbox, inventory=ox, …)
Use the radio item or /radiothe radio opens, powered off; prop in hand
Power keyLCD lights up and joins the last frequency (1.00 the first time)
Type 101.5 + Enter with a second player on 101.50both hear each other with the radio key (pma-voice, default Left Alt)
A civilian types 1 + Enter"This frequency is locked."; the radio stays on its old channel
Drop the radio item while on a channelwithin Config.Item.checkInterval the radio goes off

Troubleshooting

  • pma-voice is not started → ns-radio must start after pma-voice.
  • The item opens another radio → items.lua still points to the old script's event (step 4).
  • Locked channels are open while ns-radio is stopped → pma-voice has no checks then; restart ns-radio, don't leave it stopped.
  • Config.Debug = true logs why a player was taken off a channel.

Cart

Your cart is empty.