SetPlayerVoiceServerMuted
setPlayerVoiceServerMuted
Applies or removes a server-authoritative voice mute.
Syntax
bool setPlayerVoiceServerMuted(int playerId, bool muted)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player identifier. |
muted |
bool |
yes | Whether outgoing voice must be blocked by the relay. |
Returns
Returns true when the state was accepted; otherwise returns false.
Examples
Mute outgoing voice:
setPlayerVoiceServerMuted(playerId, true)
Notes
- Available only in server-side resource scripts.
- A server mute stops relay immediately even if the client continues holding push-to-talk.