- `issue`
   - function getInventoryNewVersion() does not have a return if you are 2.0 or higher. resulting in auto setting to false

- `how i fixed`
  - added a return
This commit is contained in:
Mustache Dom committed 2026-01-25 03:21:15 -07:00
1 parent 9c4cbf6d25
commit ba6886b4a8
1 file changed
+4 -1
+4 -1
View File
@@ -12,7 +12,10 @@ Inventory.Version = nil
Inventory.ShopData = {}
local function getInventoryNewVersion()
if tonumber(string.sub(GetResourceMetadata("qb-inventory", "version", 0), 1, 1)) >= 2 then Inventory.Version = true end
if tonumber(string.sub(GetResourceMetadata("qb-inventory", "version", 0), 1, 1)) >= 2 then
Inventory.Version = true
return
end
Inventory.Version = false
end