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.
Syntax
Section titled “Syntax”SetPlayerNameplate(pid, text)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
text |
string | the label; "" = the name again |
Returns
Section titled “Returns”boolean - false when not connected
Example
Section titled “Example”SetPlayerNameplate(pid, "[GUARD] " .. GetPlayerName(pid))See also
Section titled “See also”GetPlayerNameplate · SetPlayerColour · SetPlayerTeam · the Players group of the index
