getPlayerNameByIdentifier

returns first and last name of player by their citizenid

Returns the full name of the player for the given identifier.

Parameters:

  • identifier (string): Citizen ID

Returns:

  • string: Full name or "Unknown Person" if not found

Example:

local name = ps.getPlayerNameByIdentifier('ABC12345')
print("Player name:", name)

Last updated