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

Function

setPlayerNametagShowing

ServerPlayersIdentical to MTA:SA

Shows or hides the player's nametag.

Syntax

bool setPlayerNametagShowing(player thePlayer, bool showing)

Arguments

thePlayerplayer
The player.
showingbool
false hides it.

Returns

true on success.

Example

addCommandHandler("incognito", function(player)
    setPlayerNametagShowing(player, false)
end)

See also