Sean7456 Posted October 7, 2021 Share Posted October 7, 2021 Hello everyone, so here is my problem. I'm making chat system for my own server and it all works but i wanted to add a feature when a player sending message, his own text has different colors on his own screen for example white and texts that other players send has another color for example grey, how can it be created? Any tips or something? I'm kinda new to this and spent around 2 days making it. Any help would be appreciated. Link to comment
The_GTA Posted October 7, 2021 Share Posted October 7, 2021 Hello Sean7456! This looks like a topic that belongs into the Scripting section so I will treat it as one. Please be careful to correctly categorize your topic next time! I think the most modern approach to this is to use serverside mechanics like the onChatMessage event, the cancelEvent function and the outputChatBox function. The idea is to block the raw messages from players and then re-send the message to the chatbox using outputChatBox but with different colors for different visibleTo parameters. Good luck! Link to comment
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