Client side
 
addEventHandler("onClientRender",root ,function() showChat(false) end) 
--showChat(false) Hide chat
--showChat(true) Show chat
	and use this in server side because  disablity sending message via console (F8)
 
addEventHandler("onPlayerChat", root,
function()
cancelEvent() 
end)