- Documentation
- Shared functions
- getPlayerNametagText
Function
getPlayerNametagText
Returns the nametag text (the nickname by default).
Syntax
string getPlayerNametagText(player thePlayer)Arguments
thePlayerplayer- The player.
Returns
The text.
Example
for _, p in ipairs(getElementsByType("player")) do
outputChatBox(getPlayerNametagText(p))
end