The code below is what I use to hide my chatbox for my custom one. It currently works fine, the only problem is once I’ve opened the chat once, my tilde (console key) and menu (escape key) binds no longer work. Does anyone happen to know a solution to this?
hook.Add(“HUDShouldDraw”, “KillChat”, function(elmnt)
if elmnt == “CHudChat” then return false end
The solution I found was to just draw my chatbox with the surface library while the invisible chat was open.