GetAllWithPermission
Shared
table Lyn.Player.GetAllWithPermission(string permission)FunctionDescription
Returns all players that have a specific permission.
Params
stringpermission
Returns
Array of players with the specified permission.
Example:
local admins = Lyn.Player.GetAllWithPermission("testest")
for _, ply in ipairs(admins) do
print(ply:Nick())
end