alexmohor1996 Posted December 27, 2022 Posted December 27, 2022 Hello, guys. I hope this finds you well. I have just started developing a Rage server in C# and I was wondering if someone can help me with a thing. I would like to alter the chat input string, as in: the current string, when hitting T and writing something, it is something like > {name}: {message}. The problem is I cannot find anywhere the chat string function, unfortunately. as I want to customize it with different own things. I would very much appreciate the help on this one, please .
hash_ Posted December 28, 2022 Posted December 28, 2022 why don't you do something simple like var p = player; NAPI.Chat.SendChatMessageToPlayer($"{p.Name}:TEXT"); 1
alexmohor1996 Posted December 29, 2022 Author Posted December 29, 2022 15 hours ago, hash_ said: why don't you do something simple like var p = player; NAPI.Chat.SendChatMessageToPlayer($"{p.Name}:TEXT"); I really appreciate the reply, thank you. While waiting for one, I turned the internet upside down searching and I discovered I should have turned off the Global Chat and alter the "OnChatMessage" Event with a "SendChatMessageToAll" function. Thank you, once again .
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now