fix: check for inventory

This commit is contained in:
Andyyy7666
2022-11-19 18:28:57 +01:00
parent 16c820d5a0
commit 4c9c91605a

View File

@@ -23,6 +23,11 @@ CreateThread(function()
end end
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") SetConvarReplicated("inventory:framework", "nd")
end end