Skip to content

SetPlayerNameplate

The label over the player’s body on every other screen.

By default the label is the player’s name; this replaces it - a rank, a team tag, a title. "" puts the name back. At most 48 characters. The label keeps its colour (SetPlayerColour) and hides behind walls like the name does.

SetPlayerNameplate(pid, text)
Parameter Type
pid number the player
text string the label; "" = the name again

boolean - false when not connected

SetPlayerNameplate(pid, "[GUARD] " .. GetPlayerName(pid))

GetPlayerNameplate · SetPlayerColour · SetPlayerTeam · the Players group of the index