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.
This commit is contained in:
MrNewb committed 2025-10-12 21:53:27 -04:00
1 parent c582ce69e9
commit c73faa43db
2 files changed
+4

No files matched your search

@@ -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 {}
@@ -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 {}