getPlayerNametagText | Multi Theft Auto: Wiki Skip to content

getPlayerNametagText

Client-side
Server-side
Shared

Pair: setPlayerNametagText

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This will allow you to retrieve the name tag a player is currently using.

Syntax

getPlayerNametagText ( )

Code Examples

server

This will output the nametag text of the player who enters the command 'myNametag'.

function showNametag ( thePlayer, command )
local nameTag = getPlayerNametagText ( thePlayer )
outputChatBox ( "Your nametag text is: " .. nameTag, thePlayer )
end
addCommandHandler("myNametag", showNametag)

See Also