GetPlayerNameDebug
From Nomad DB
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