Hide chat box

Does anyone know if there is a way to do this?

CHudChat + Gamemode.HUDShouldDraw?

Seems that by hiding that it makes the player unable to open console or escape menu…
great…

Edit: Only if they press Y or T (Chat buttons)

^ That’s the right one