Merge pull request #179 from Mustachedom/qb-inventory_version_fix

- `fix` qb-inventory version check function
This commit is contained in:
MrNewb authored and GitHub committed 2026-01-28 19:55:41 -05:00
commit 1c3d045479
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