Gamemode.PlayerSay
From GMod Wiki
Revision as of 21:43, 27 August 2011 by TheFreeman193 (Talk | contribs)
| Event Hook | |
| Hook Name | PlayerSay |
| Syntax | GM:PlayerSay( Player player, String text, Boolean Public chat ) |
| Description | Called when a player types and enters a text message. |
| Returns | String The text to display on players' screens |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSay]Gamemode.PlayerSay [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Returning the text, even the original text, will stop this from being called in any other hooks. If you're not changing the text, then you don't return anything.
- Public Chat is false when it's team chat and true if it's public chat.