SetPlayerNametagText

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 06:13, 24 August 2026 by QCherry (talk | contribs) (Document Protocol 23 voice and player presentation APIs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 setPlayerNameplateText for terminology consistent with the native UI.