Scripts/resources/[voice]/pma-voice/docs/server-getters/getPlayersInRadioChannel.md

22 lines
550 B
Markdown
Raw Permalink Normal View History

2024-12-29 20:02:57 +00:00
## getPlayersInRadioChannel
## Description
Gets a list of all of the players in the specified radio channel.
## Parameters
* **radioChannel**: The channel to get all the members of
## Returns
Returns a table of all of the players in the specified radio channel
```lua
-- this will return all of the current players in radio channel 1
local players = exports['pma-voice']:getPlayersInRadioChannel(1)
for source, isTalking in pairs(players) do
print(('%s is in radio channel 1, isTalking: %s'):format(GetPlayerName(source), isTalking))
end
```