Jump to content

Adding Extra Info to Chatbox Name Completion


Recommended Posts

Hello! Is it possible to include additional information in the chatbox when completing a name with the tab key?

For example, let's say we have the following data for each player:

getElementData(player, "inGameID");

We want to achieve something where when a player brings up the chatbox and writes part of another player's name, after completing the name with the tab key, the ID is appended to the name. For instance, if a player's name is "Rage" and we write "Rag" and then press the tab key, the name is completed to "Rage". We would like the player's ID to appear after their name, like "Rage [1]".

I have found several servers that have this feature and they don't use setPlayerName for it because there is a space between the name and the ID.

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...