GetPlayerVoiceServerMuted
getPlayerVoiceServerMuted
Checks whether the server has muted a player's outgoing voice.
Syntax
bool getPlayerVoiceServerMuted(int playerId)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player identifier. |
Returns
Returns true when server-muted; otherwise returns false.
Examples
Check a moderation mute:
if getPlayerVoiceServerMuted(playerId) then
outputDebugString("Voice-muted")
end
Notes
- Available only in server-side resource scripts.