Skip to content

GetPlayerVoiceMutes

The players one player muted for themselves.

Their pids, lowest first - to save in OnPlayerDisconnect (they are still listed there) and set again with SetPlayerVoiceMutedFor at the next join. A player who left is no longer in anyone’s list.

GetPlayerVoiceMutes(listener)
Parameter Type
listener number the player

{pid, ...}; {} when they hear everyone

local muted = GetPlayerVoiceMutes(pid)
SendClientMessage(pid, COLOR_WHITE, #muted .. " players muted")

SetPlayerVoiceMutedFor · IsPlayerVoiceMutedFor · OnPlayerVoiceMute · the Voice chat group of the index