Merge pull request #179 from Mustachedom/qb-inventory_version_fix
- `fix` qb-inventory version check function
This commit is contained in:
1 file changed
+4
-1
@@ -12,7 +12,10 @@ Inventory.Version = nil
|
|||||||
Inventory.ShopData = {}
|
Inventory.ShopData = {}
|
||||||
|
|
||||||
local function getInventoryNewVersion()
|
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
|
Inventory.Version = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user