mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-16 21:46:03 +01:00
feat: admin perms
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user