feat: add ace perms on group change

This commit is contained in:
Andyyy7666
2023-08-23 00:33:06 +02:00
parent cf67d9a4e2
commit 26ae7ea1a3

View File

@@ -239,6 +239,7 @@ local function createCharacterTable(info)
isJob = isJob
}
self.triggerEvent("ND:updateCharacter", self)
ExecuteCommand(("add_principal identifier.%s group.%s"):format(self.identifier, name))
return true
end
@@ -255,6 +256,7 @@ local function createCharacterTable(info)
end
self.groups[name] = nil
self.triggerEvent("ND:updateCharacter", self)
ExecuteCommand(("remove_principal identifier.%s group.%s"):format(self.identifier, name))
end
---@param name string