mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-18 10:58:33 +00:00
tweak: check for inventory
This commit is contained in:
1 parent
211c2531cc
commit
12b30c30d6
3 files changed
+9
-8
No files matched your search
+2
-6
@@ -25,14 +25,10 @@ CreateThread(function()
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler("onResourceStart", function(resourceName)
|
||||
Wait(3000)
|
||||
if resourceName ~= "ox_inventory" then return end
|
||||
isResourceStarted("ox_inventory", function(started)
|
||||
if not started then return end
|
||||
SetConvarReplicated("inventory:framework", "nd")
|
||||
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")
|
||||
|
||||
Reference in new issue
Block a user