[Release] mumble-voip, rp-radio

anyone ever respond to you?

1 Like

Hi If you want a radio as a useable item, and wanna drop player from channel if someone confiscate the radio item or, palyer drop the radio item , or player dead. Create server.lua in rp-radio directory

and put this

ESX = nil

TriggerEvent(‘esx:getSharedObject’, function(obj) ESX = obj end)

ESX.RegisterUsableItem(‘radio’, function(source)

local xPlayer = ESX.GetPlayerFromId(source)
TriggerClientEvent('Radio.Set', source, true)
TriggerClientEvent('Radio.Toggle', source)

end)

Citizen.CreateThread(function()
while true do
Citizen.Wait(500)
local xPlayers = ESX.GetPlayers()
for i=1, #xPlayers, 1 do
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])
if xPlayer ~= nil then
if xPlayer.getInventoryItem(‘radio’).count == 0 then

            local source = xPlayers[i]
            TriggerClientEvent('Radio.Set', source, false)

            break
          end
        end
      end
    end
  end)

and add this to your fxmanifest.lua :

server_scripts {
“server.lua”,
}

And in client.lua Set the Has.radio=true —> Has.radio=false

1 Like

bro can you set a copanimation while using radio ??? plssss

I want to know. how i can set volume on walkie talkie ?
Thank you for answer :heart_eyes:

does anyone know hoe to set the players name instead of the radio alphabet

You found it ?

How would I add this to my server or client side

Why does my mumble-voip and rp-radio not work on my fivem vrp server?

did you figure this out?if yes can you help me ?

Got the radio to finally show up with pma voice, but as soon as i click radio on, the menu goes away and nothing works and its stuck in my hand, does the same when i change keybind too so idk?!?

Hi guys i’ve got a problem with this script if i drive a police car or an ambulance i can’t speak at the radio, i can hear but can’t speak if someone have a solution thanks to you.

how do i turn it on there is no Radio.Has in client.lua??

image

how do you fix this so it works on t/radio??

to which one do i need to change?

set onesync legacy in your sever.cfg onesync is required for mumble and thats why it wont connect. trust me i fought for a month before figuring that out lol

1 Like

– Check if player has radio
function IsRadioAvailable()
return Radio.Has
end
line 277-281 client.lua (sorry posted wrong thing. will update soon)

1 Like

Question… Is there anyway to merge multiple channels to 1 channel for example Ch 1 LEO Ch2 FD Ch3 EMS and Ch4 Dispatch (Ch 4 needs to hear Ch1-3 and be able to communicate to all 3 Ch but each individual Ch can only hear each other except dispatch)

In your rp-radio files edit your client.ula line two should read Has=false (look below for an example)

local Radio = {
Has = false,
Open = false,
On = false,
Enabled = true,
Handle = nil,
Prop = prop_cs_hand_radio,
Bone = 28422,
Offset = vector3(0.0, 0.0, 0.0),
Rotation = vector3(0.0, 0.0, 0.0),
Dictionary = {
“cellphone@”,
“cellphone@in_car@ds”,
“cellphone@str”,
“random@arrests”,
},
Animation = {
“cellphone_text_in”,
“cellphone_text_out”,
“cellphone_call_listen_a”,
“generic_radio_chatter”,
},
Clicks = true,
}

Is there anyway that you can add a currently talking script to this?

1 Like

i have got the radio working but now i cannot hear no1 on the street dose anyone know why this may be i can hear them thought the radio but not on the street without them