Garry's Mod Wiki

Revision Difference

Player:SetMuted#527035

<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 for i, v in ipairs( player.GetAll() ) do v:SetMuted(true) end </code> </example>