Garry's Mod Wiki

GM:PlayerCanSeePlayersChat

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

Description

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.

Arguments

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.

Returns

1 boolean
Can see other player's chat