Gamemode.OnPlayerChat
From GMod Wiki
| Event Hook | |
| Hook Name | OnPlayerChat | 
| Syntax | GM:OnPlayerChat( Player player, String text, Boolean TeamChat, Boolean PlayerIsDead ) | 
| Description | Called when a player types and enters a text message. | 
| Returns | Nil | 
| Lua State |   | 
| BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.OnPlayerChat]Gamemode.OnPlayerChat [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] | 
Examples
Additional Notes
- This used to be handled by Gamemode.ChatText
- Return true to suppress the default messages.

 
			
			