Role.GetAll
Shared
table Lyn.Player.Role.GetAll(Player target)FunctionDescription
Returns a copy of all roles the specified player has.
Prefer using Lyn.Player.Role.Iter when you only need to loop through a player's roles.
Params
Playertarget
Returns
Array of all roles the player has.
Example:
PrintTable(Lyn.Player.Role.GetAll(Entity(1)))
-- Output:
-- [1] = superadmin
-- [2] = user
-- Which is: {"superadmin", "user"}