mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-16 21:46:03 +01:00
feat: receive groups by discord roles
Player can receive groups based on the discord roles they have, ace perms are also added when group is received.
This commit is contained in:
@@ -309,6 +309,12 @@ local function createCharacterTable(info)
|
||||
self.addGroup("admin")
|
||||
end
|
||||
end
|
||||
|
||||
for group, role in pairs(Config.groupRoles)
|
||||
if lib.table.contains(roles, role) then
|
||||
self.addGroup(group)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for name, _ in pairs(self.groups) do
|
||||
|
||||
Reference in New Issue
Block a user