Garry's Mod Wiki

Revision Difference

GM:PlayerCanSeePlayersChat#511099

<function name="PlayerCanSeePlayersChat" parent="GM" type="hook">⤶ <ishook>yes</ishook>⤶ <description>Returns whether or not the player can see the other player's chat.</description>⤶ <realm>Server</realm>⤶ <predicted>No</predicted>⤶ <args>⤶ <arg name="text" type="string">The chat text</arg>⤶ <arg name="teamOnly" type="boolean">If the message is team-only</arg>⤶ <arg name="listener" type="Player">The player receiving the message</arg>⤶ <arg name="speaker" type="Player">The player sending the message</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">Can see other player's chat</ret>⤶ </rets>⤶ </function>⤶ ⤶