fix: check for inventory

This commit is contained in:
Andyyy7666 committed 2022-11-19 18:28:57 +01:00
1 parent 16c820d5a0
commit 4c9c91605a
1 file changed
+6 -1
+6 -1
View File
@@ -23,6 +23,11 @@ CreateThread(function()
end
end)
if GetExport("ox_inventory") then
AddEventHandler("onResourceStart", function(resourceName)
Wait(3000)
if resourceName ~= "ox_inventory" then return end
SetConvarReplicated("inventory:framework", "nd")
end)
if GetResourceState("ox_inventory") == "started" then
SetConvarReplicated("inventory:framework", "nd")
end