Gamemode.StartChat

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameStartChat
SyntaxGM:StartChat( Boolean TeamSay )
DescriptionThis hook allows you to override the default chat box, returning true will hide it.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.StartChat]Gamemode.StartChat [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionMakes the chatbox invisible, it'll still be there just not visible.
Used onNewerClient.png
Code
local function StartChat(TeamSay)
	return true -- Return true to hide the chatbox
end
hook.Add("StartChat", "HideMyChatBox", StartChat)
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox