function getPlayerName (client-side)
Available since version: 0.3.0
This function will return the player/NPC current name, or nil if unavailable.
Declaration
string|nil getPlayerName(number player_id)
Parameters
numberplayer_id: Target player or NPC id; negative ids refer to client-local NPCs.
Returns string|nil
Player name or nil.