Jump to content

Chat output colors


Sean7456

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...