I’m trying to create a chat censor, and I want it to be toggleable.
So everything is done on the client’s side.
Buuut I came across a problem when trying to change the text. Unlike PlayerSay, OnPlayerChat returns a boolean so I had to completely overwrite the chat, like so:
[lua]hook.Add( “OnPlayerChat”, “BlahblahWhatever”, function( ply, text, isDead, teamOnly )
–Blah blah blah change text to something else
chat.AddText( /Whatever/ )
But this overwrites custom chat stuff made by other addons.
Is there anyway I can change just the text, client-side?