Force Open Chat?

Is there a way to force open the chatbox? And if you can, is there also any way you can insert text into it that the user does not have to type? I’m trying to make it easier to PM users on a server, so my plan was going to be to open the chatbox and have ‘/pm <username>’ already there.

You can’t directly insert text unless it’s a custom chatbox.

There is an OnChatTab hook that you can insert text when the client presses tab.

I think it was granpc who said if you run “say” on the client without any arguments it will open the default chatbox.

Thanks guys. Unfortunately, running “say” didn’t do anything, at least with RunConsoleCommand it didn’t. I will just go about it a different way.