2023-07-10 02:40:39 +02:00
|
|
|
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
|
2022-07-16 04:46:27 +02:00
|
|
|
|
2023-07-10 02:40:39 +02:00
|
|
|
NDCore = {}
|
|
|
|
|
NDCore.Players = {}
|
|
|
|
|
NDCore.Functions = {}
|
|
|
|
|
NDCore.Commands = {}
|
|
|
|
|
NDCore.PlayersDiscordInfo = {}
|
|
|
|
|
NDCore.Config = config
|
|
|
|
|
|
|
|
|
|
function GetCoreObject()
|
|
|
|
|
return NDCore
|
2023-07-10 02:37:54 +02:00
|
|
|
end
|
|
|
|
|
|
2023-07-10 02:40:39 +02:00
|
|
|
isResourceStarted("ox_inventory", function(started)
|
|
|
|
|
if not started then return end
|
|
|
|
|
SetConvarReplicated("inventory:framework", "nd")
|
2022-11-19 18:28:57 +01:00
|
|
|
end)
|
2022-11-30 03:32:52 +01:00
|
|
|
|
2023-07-10 02:40:39 +02:00
|
|
|
for _, roleid in pairs(config.adminRoles) do
|
|
|
|
|
ExecuteCommand("add_principal identifier.discord:" .. roleid .. " group.admin")
|
|
|
|
|
end
|