This repository has been archived on 2025-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
UIRP-5M/resources/[core]/pma-voice/docs/server-getters/getPlayersInRadioChannel.md

22 lines
550 B
Markdown
Raw Normal View History

2025-02-02 10:40:42 +01: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
```