GetPlayerNameDebug

From Nomad DB
Revision as of 19:17, 14 April 2020 by Cobra (talk | contribs) (Created page with "Retrieves the user name of the specified player. == Syntax == <syntaxhighlight lang="lua"> GetPlayerNameDebug(playerId) </syntaxhighlight> * '''playerId''' (number): Player...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Retrieves the user name of the specified player.

Syntax

GetPlayerNameDebug(playerId)
  • playerId (number): ID of the target player
  • Returns (string): User name of the specified player

Example

local playerName = GetPlayerNameDebug(GetLocalPlayerId())
print(playerName) -- returns the local player's user name

Related Pages