[Release] esx_radioperms

I have made a little script for mumble-voip.

it basically sets permissions to the private channels of the radio using export
GivePlayerAccessToFrequencies.

Dowload : Github

2 Likes

Why do two loops just waiting for ESX? Just do this?

 Citizen.CreateThread(function()
    while ESX == nil do
        TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
        Citizen.Wait(0)
    end
    PlayerData = ESX.GetPlayerData()
    while PlayerData.job == nil do
        Citizen.Wait(10)
    end
    if PlayerData.job.name == 'police' then 
	    exports["rp-radio"]:GivePlayerAccessToFrequencies(1, 2, 3, 4, 5)    
    end
end)
1 Like

Thank u ::smiley: i just took it from y past script.

Too simple