Skip to main content

Role.GetDisplay

Shared
string Lyn.Player.Role.GetDisplay(Player target)Function

Description

Returns the display name of the highest role the specified player has.

Returns NULL if the player has no roles.

Params

  1. Player target

Returns

  1. The display name of the highest role the player has. Or NULL if none.

Example:

print(Lyn.Player.Role.GetDisplay(Entity(1)))

-- Output:
-- Super Admin