Garry's Mod Wiki

Revision Difference

Player:SetMuted#527156

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