/text <ID> help needed

If you want to use the chat (something like /command) you have to create a serversided script. But you can Trigger a client event with it.

You could check my resource for example. There you will see what I mean: