mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 13:56:02 +01:00
21 lines
519 B
Lua
21 lines
519 B
Lua
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
|
|
|
|
NDCore = {}
|
|
NDCore.Players = {}
|
|
NDCore.Functions = {}
|
|
NDCore.Commands = {}
|
|
NDCore.PlayersDiscordInfo = {}
|
|
NDCore.Config = config
|
|
|
|
function GetCoreObject()
|
|
return NDCore
|
|
end
|
|
|
|
isResourceStarted("ox_inventory", function(started)
|
|
if not started then return end
|
|
SetConvarReplicated("inventory:framework", "nd")
|
|
end)
|
|
|
|
for _, roleid in pairs(config.adminRoles) do
|
|
ExecuteCommand("add_principal identifier.discord:" .. roleid .. " group.admin")
|
|
end |