From 4c9c91605a00852291f7286d06065d19c44f25b1 Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Sat, 19 Nov 2022 18:28:57 +0100 Subject: [PATCH] fix: check for inventory --- server/main.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/main.lua b/server/main.lua index 972c378..b198380 100644 --- a/server/main.lua +++ b/server/main.lua @@ -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 \ No newline at end of file