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
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
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)
Thank u : i just took it from y past script.
Too simple