I mean so player’s Can name the radio channel’s in game via a command
The person id when they come into the server eg 21 or 125 etc.
Works great, thanks!
How would you disable it by default but still let the command for those who want it?
eg join server and it doesn’t show until you do the command
Edit: Figured it out but would be cool as config
Hey, nice release. it doesn’t working for me, when i connect to a radio channel says Radio undefinied, why does that happen?
Not sure if you know this or if something changed but when you leave a channel it shows u still in that channel for everyone else. doesn’t update it until they swap channels then swap back
can you make it so it shows steam name in the list
I did this guys, work for me
RegisterCommand(
"radiolist",
function(source, args)
local source = source
if source then
-- print("a")
cnVRP.BlockList(cnVRP.CheckUser(source))
end
end
)
function cnVRP.BlockList(a)
local frequency = a
local players = exports["pma-voice"]:GetPlayersInRadioChannel(a)
for source, isTalking in pairs(players) do
if source ~= scr then
if isTalking then
exports["pma-voice"]:setPlayerRadio(source, 0)
else
exports["pma-voice"]:setPlayerRadio(source, frequency)
end
end
end
end
function cnVRP.CheckUser(p)
local scr = p
print(("fora do while: %s"):format(p))
-- print(a)
for i = 1, 1024 do
local players = exports["pma-voice"]:GetPlayersInRadioChannel(i)
for source, isTalking in pairs(players) do
print(("\n\n%s is in radio channel %s, isTalking: %s\n\n"):format(GetPlayerName(source), i, isTalking))
-- print(isTalking)
print(("dentro do while - ID interno: %s"):format(source))
if source == scr then
print(("radio do player: %s"):format(i))
return i
end
end
end
end
How can i use it to be item ESX.RegisterUsableItem('radio', function(source)
As soon as you are connected to a radio channel, the list should work.
It doesn’t matter what item you are using for radio or what is your framework…
Check the config.lua to apply some modifications if you want.
@MahanMoulaei I am using this script with:
mumble-voip
rp-radio
The radio list works, when I join a channel, I see a name. And when someone else joins the channel I see their name. However, when I try to use “nameinradio” I get this error message:
SCRIPT ERROR: @RadioList/Server/Server.lua:134: attempt to compare number with nil
The code on that specific line:
if currentRadioChannel > 0 then
I tried putting “currentRadioChannel” into “tonumber”, but it did not resolve the issue. Do you have any idea why it isn’t working?
@ZSRPMick @TheLostGraveYard I’ll try to push a whole refactor update that should fix the ongoing bugs and would add more functionalities to the script in the next week.
How did you do this ?
The new update has that feature. Go ahead and update yours…
The new update has that callsign feature. Go ahead and update yours…
The bugs are fixed now. Go ahead and update yours…
The new update has the feature to let players modify radio channel names. Go ahead and update yours…
The new update has the feature to show radio members’ server IDs. Go ahead and update yours…
Btw the download link you have set up is still for the old radio list not the new one which has the new server id thing.
Thanks for letting me know. Updated it.