Garry's Mod Wiki

Revision Difference

Player:SetMuted#512435

<function name="SetMuted" parent="Player" type="classfunc">⤶ <description>Sets if the player should be muted locally.</description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="mute" type="boolean">Mute or unmute.</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Mutes all players on the server</description>⤶ <code>⤶ for k, v in pairs(player.GetAll()) do⤶ v:SetMuted(true)⤶ end⤶ </code>⤶ ⤶ </example>