From c73faa43dbfb30b1789cb8b6dae927216c79d335 Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Sun, 12 Oct 2025 21:53:27 -0400 Subject: [PATCH] Add checks for alternative inventory resources Added resource state checks for 'codem-inventory' and 'origen_inventory' in both client and server scripts to ensure compatibility and prevent conflicts when those resources are present. --- modules/inventory/qb-inventory/client.lua | 2 ++ modules/inventory/qb-inventory/server.lua | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/inventory/qb-inventory/client.lua b/modules/inventory/qb-inventory/client.lua index 195441e..3506073 100644 --- a/modules/inventory/qb-inventory/client.lua +++ b/modules/inventory/qb-inventory/client.lua @@ -1,5 +1,7 @@ ---@diagnostic disable: duplicate-set-field if GetResourceState('qb-inventory') ~= 'started' then return end +if GetResourceState('codem-inventory') ~= 'missing' then return end +if GetResourceState('origen_inventory') ~= 'missing' then return end local qb = exports['qb-inventory'] Inventory = Inventory or {} diff --git a/modules/inventory/qb-inventory/server.lua b/modules/inventory/qb-inventory/server.lua index 9abd7cb..8a3f898 100644 --- a/modules/inventory/qb-inventory/server.lua +++ b/modules/inventory/qb-inventory/server.lua @@ -1,5 +1,7 @@ ---@diagnostic disable: duplicate-set-field if GetResourceState('qb-inventory') ~= 'started' then return end +if GetResourceState('codem-inventory') ~= 'missing' then return end +if GetResourceState('origen_inventory') ~= 'missing' then return end local qbInventory = exports['qb-inventory'] Inventory = Inventory or {}