What calls OnPlyerChat

Is there a usermessage or something that calls the hook OnPlayerChat? Because i’m tyring to do something with it on a server with a custom chatbox, and its not working?

Engine does it.

From the Wiki:
Called when a player types and enters a text message.

So it should call whatever function you’ve hooked it to whenever the player says something in chat.

If its not being called, you did something wrong.

For some reason the custom chat box was doing something to it, i just overrode the custom chatbox and it works great