Role.Iter
Shared
function, table, number Lyn.Player.Role.Iter(Player target)FunctionDescription
Returns an iterator for all roles the specified player has.
Params
Playertarget
Returns
The iterator function.
The table of roles.
The current index.
Example:
for idx, role in Lyn.Player.Role.Iter(Entity(1)) do
print(idx, role)
end
-- Output:
-- 1 superadmin
-- 2 user