getPlayerName

returns a players first and last name

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

Parameters:

  • source (number): Player server ID

Returns:

  • string: Full name (firstname + lastname)

Example:

local name = ps.getPlayerName(source)
print("Player name:", name)

Last updated