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:
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 {}
|
||||
|
||||
Reference in new issue
Block a user