feat: admin perms

This commit is contained in:
Andyyy7666 committed 2022-11-30 03:32:52 +01:00
1 parent 2fb940fe7e
commit 44d1351a5c
3 files changed
+19 -4

No files matched your search

+6
View File
@@ -3,6 +3,8 @@
NDCore = {}
NDCore.Players = {}
NDCore.Functions = {}
NDCore.Commands = {}
NDCore.PlayersDiscordInfo = {}
NDCore.Config = config
function GetCoreObject()
@@ -30,4 +32,8 @@ AddEventHandler("onResourceStart", function(resourceName)
end)
if GetResourceState("ox_inventory") == "started" then
SetConvarReplicated("inventory:framework", "nd")
end
for _, roleid in pairs(config.adminRoles) do
ExecuteCommand("add_principal identifier.discord:" .. roleid .. " group.admin")
end