- fix
- `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:
1 parent
9c4cbf6d25
commit
ba6886b4a8
1 file changed
+4
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user