Garry's Mod Wiki


  boolean GM:PlayerCanSeePlayersChat( string text, boolean teamOnly, Player listener, Player speaker )


Returns whether or not the player can see the other player's chat.

The speaker parameter does not have to be a valid Player object which happens when console messages are displayed for example.


1 string text
The chat text
2 boolean teamOnly
If the message is team-only
3 Player listener
The player receiving the message
4 Player speaker
The player sending the message.


1 boolean
Can see other player's chat