Gamemode.FinishChat

From GMod Wiki

Revision as of 20:36, 7 March 2011 by nüke (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameFinishChat
SyntaxGM:FinishChat( )
DescriptionIs triggered when the chat box is closed. Used for making custom chat boxes.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.FinishChat]Gamemode.FinishChat [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrint a red message in chat when they have finished typing.
Used onNewerClient.png
Code
 
function GM:FinishChat() 
 
  chat.AddText( Color(255,0,0), "Hey! You stopped chatting!" )
 
end
 
OutputHey! You stopped chatting!


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox