Is there a way to filter what is placed in the default chatbox by the server? I have tried the code below but it does not seem to hide player joinleaves, also need this to work for ban and kick text.
function HideJoinLeave( playerindex, playername, text, messagetype )
if messagetype == “joinleave” then
hook.Add( “ChatText”, “HideJoinLeave”, HideJoinLeave )