Garry's Mod - Muting Player Text Chat using E2

So my server only has a few addons, one of which is WireMod. But believe it or not, I don’t have an addon to mute someone on my server! I’m currently working on an E2 to do this, but I’m not sure how to hide the targeted player’s chats. That is what I have so far–


@name Mute Player Text Chat
@inputs
@outputs Target:entity
@persist

runOnTick(1)
runOnChat(1)

if (chatClk(owner())&LastSaid[1,string]=="</mute")
    {Target=findPlayerByName(LastSaid[2,string])}
hideChat(1)
#What goes here to hide the targeted player's chats???

If you could add the final part into this code for me, I would greatly appreciate it.

God damn it if I was at my PC I could totally help you out.

I’ll get back to you on this, I’ve done chat stuff before.

Lest someone ninjas me… :godzing:

I will say this, watch your bracket placement and note the usage of runonchat and runontick

I’m not sure what you mean about watch the brackets on the 2 runOn’s.
Honestly, I learn by understanding what each command does.

I don’t believe it’s possible to mute another player’s chat for yourself, at least using Expression 2. If I’m wrong someone please correct me.

Unless something has changed in the last couple of months, no, you cannot hide someone else’s chat, even locally.

Alright, well thanks anyways. If anything comes up, go ahead and message me.