Garry's Mod Wiki

Revision Difference

GM:PlayerCanSeePlayersChat#526573

<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>⤶ <description>Returns whether or not the player can see the other player's chat.<note>The **speaker** parameter does not have to be a valid <page>Player</page> object which happens when console messages are displayed for example.</note></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>⤶ <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>