Gamemode.ChatTextChanged
From GMod Wiki
Event Hook | |
Hook Name | ChatTextChanged |
Syntax | GM:ChatTextChanged( String text ) |
Description | Called whenever the content of the user's chat input box is changed. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.ChatTextChanged]Gamemode.ChatTextChanged [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- If the first letter isn't a lowercase letter or number, the function will be called with an empty string before it is called with the character (as well as the usual first call with an empty string due to opening the window).
- Pressing backspace will call the function with an empty string.