Changing message from plugin?Solved
Hey, i have tried some stuff but i really can't get it to work, is there a way to reformat a message?
for a example if someone sends "hi" then it will change it to "hello im *player name*" 
if that's possible can someone please give me an example on how to do that?
Oh I can simply change the message(reassign the string?)
5ba769cea1b79.png Quapi
Oh I can simply change the message(reassign the string?)

I've also replied to your PM, but here for future reference; yes. You can simply reassign the "Message" value in the dictionary passed to the OnBetterChat hook and return the changed dictionary.

Hey, I have a problem, It dousn't work so i tried doing something like that for example:

private object OnBetterChat(Dictionary data)
        {
            var message = data["Message"] as string;
            message = "hi";
            return message;
        } 

That didn't work and gave me this.
from what i understood it changes only the variable and should give it to me with the rank and title like this.
can you please give me an example on how to do that? 

Merged post

Okay nvm i just got what i was doing wrong.
Locked automatically