ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setPlayerNametagText

Function

setPlayerNametagText

ServerPlayersIdentical to MTA:SA

Changes the nametag text. false restores the nickname.

Syntax

bool setPlayerNametagText(player thePlayer, string text)

Arguments

thePlayerplayer
The player.
textstring
The text or false.

Returns

true on success.

Example

setPlayerNametagText(player, "[ADMIN] " .. getPlayerName(player))

See also