SetPlayerNametagText
setPlayerNametagText
Compatibility alias for setPlayerNameplateText.
Syntax
bool setPlayerNametagText(int playerId, string text)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player identifier. |
text |
string |
yes | Validated custom nameplate text. |
Returns
Returns the same value as setPlayerNameplateText.
Examples
Use the MTA-style compatibility name:
setPlayerNametagText(playerId, "Guard")
Notes
- Available only in server-side resource scripts.
- New resources may use
setPlayerNameplateTextfor terminology consistent with the native UI.