[Help] How to disable Player messages

Hey everyone. I need help.
A friend of me wants to make a FiveM Roleplay Server and he wants to disable that Players can use the chat to write with each other. He wants that the Chat only be used for commands. Can we disable this or do we need a whole new Chat script?

Yes You can, You gotta make sure You are no sending the trigger chat:sendmessage or something like that.

Can you explain on that more?