I am trying to make a new chatbox but I am not sure how to hide the old one as shown in the picture below. Both boxes apear and close at the same time.
[img]http://i48.tinypic.com/2q1rsk9.png[/img]
[lua]local function StartChat(TeamSay)
return true -- Return true to hide the chatbox
end
hook.Add("StartChat", "HideMyChatBox", StartChat)[/lua]
[url=http://wiki.garrysmod.com/?title=Gamemode.StartChat]From the wiki.[/url]
You could also try:
[lua]function HideNormalChat( name )
if (name == "CHudChat") then
return false
end
end
hook.Add("HUDShouldDraw", "HideChatbox", HideNormalChat)[/lua]
Thanks man guess I didnt look hard enough at the example :P
Sorry, you need to Log In to post a reply to this thread.