🛠️Setup

This is a detailed setup guide for Advanced Radio. If you have any questions before making a purchase, you can contact us on Discord

Detailed Config is Provided with the script with detailed information:

Supports Every Server: QBCore, ESX, Standalone

Events

  • Open Radio UI
    TriggerEvent('cs:advradio:openRadio', 1) --To Use Model 2 put 2 insted of 1
  • Close Radio UI
    TriggerEvent('cs:advradio:closeUI')
  • Open Radio Scanner UI
    TriggerEvent('cs:advradio:openScanner')
  • Remove Player From Radio
    TriggerServerEvent('cs:advradio:forceLeave', 1) -- You can provide a player ID to remove a specific player from radio
  • Set Dead Status [true,false]
    TriggerEvent('cs:advradio:isDead', true) --true/false Update Death Status from your death script

Exports

  • Check Current Channel
    exports["cs_walkietalkie"]:isInRadio() --Fetched Player's Channel
  • Join Radio By Export
    -- This export can be used on both the server and client sides --
    
    -- return: 'connected', 'restrict', 'password'
    exports["cs_walkietalkie"]:joinRadio(channel)

Usages

You can customize this script to support every voice systems: pma-voice, toko-voip, saltychat

*It supports Mumble VOIP as well, but since pma-voice is the latest version of Mumble, we recommend using that. However, if you still prefer Mumble, you can continue using this script, and it will work with Mumble as well

RegisterNetEvent('cs:advradio:connect', function (channel, connect)
    if connect then
        -- PMA Voice --
        exports["pma-voice"]:setRadioChannel(channel)
        exports["pma-voice"]:setVoiceProperty("radioEnabled", true)

        -- Toko Voip --
        -- exports.tokovoip_script:addPlayerToRadio(channel)
        -- exports.tokovoip_script:setPlayerData(GetPlayerName(PlayerId()), "radio:channel", channel, true)

        -- Salty Chat --
        -- exports.saltychat:SetRadioChannel(tostring(channel), true)
    else
        -- PMA Voice --
        exports["pma-voice"]:setRadioChannel(0)
        exports["pma-voice"]:setVoiceProperty("radioEnabled", false)

        -- Toko Voip --
        -- exports.tokovoip_script:removePlayerFromRadio(exports.tokovoip_script:getPlayerData(GetPlayerName(PlayerId()), "radio:channel"))
        -- exports.tokovoip_script:setPlayerData(GetPlayerName(PlayerId()), "radio:channel", "nil", true)

        -- Salty Chat --
        -- exports.saltychat:SetRadioChannel("", true)
    end
end)

RegisterNUICallback('setVolume', function(curVol, cb)
    -- PMA Voice --
    exports['pma-voice']:setRadioVolume(tonumber(curVol))

    -- Toko Voip --
    -- exports.tokovoip_script:setRadioVolume(tonumber(curVol))

    -- Salty Chat --
    -- exports.saltychat:SetRadioVolume(tonumber(curVol))
end)

Additional detailed guidance can be found in the config itself. If you need further assistance, please feel free to contact us on Discord.

Last updated