Jump to content

Difference between Name and NametagText


Lestat

Recommended Posts

A players nametag and name are the same default by MTA, however with a script they can be changed. The Nametag text is the 3D text on the player that other players change, which can be changed with setPlayerNametagText and the players name is the nickname that is displayed in something like the chatbox and can be changed with setPlayerName.

To get a string without color codes, you can use this function:

function removeColorCode ( text )  
    return text:gsub ( "#%x%x%x%x%x%x" ); 
end 

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