Player.SetMuted
From GMod Wiki
Function | |
Syntax | Player:SetMuted( Boolean ) |
Description: | |
This function toggles the muted state on the client's muted list. | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.SetMuted]Player.SetMuted [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Simple function to ignore a single player. |
---|---|
Used on | |
Code | function IgnorePlayer(ply) ply:SetMuted(true); end function UnignorePlayer(ply) ply:SetMuted(false); end |
Output | N/A |
Additional Notes
- This will only work if the target passes the Player.IsVoiceAudible test