Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jan 23, 2022
1 parent 31ef297 commit fa03c92
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ game 'gta5'
--[[ Resource Information ]]--
name 'ox_inventory'
author 'Overextended'
version '2.1.9'
version '2.2.0'
repository 'https://github.com/overextended/ox_inventory'
description 'Slot-based inventory with metadata'

Expand Down
16 changes: 8 additions & 8 deletions version.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ if server.versioncheck then
local url = GetResourceMetadata(resource, 'repository', 0)
local version = GetResourceMetadata(resource, 'version', 0)

PerformHttpRequest(('%s/master/fxmanifest.lua'):format(url:gsub('github.com', 'raw.githubusercontent.com')), function(error, response)
if error == 200 and response then
PerformHttpRequest(('%s/master/fxmanifest.lua'):format(url:gsub('github.com', 'raw.githubusercontent.com')), function(status, response)
if response and status == 200 then
local latest = response:match('%d%.%d+%.%d+')
if version < latest then
print(('^3An update is available for ox_inventory - please download the latest release (current version: %s)'):format(latest, version))
print([[^3 - https://github.com/overextended/ox_inventory/releases
- rebalanced weapon durability loss
- support multiple police jobs
- player inventories no longer "lock" after using a container
- remove invalid durability when loading an inventory
- all weapons are removed from players when disarming
- various tweaks to code flow and structure
- new convars, with old config removed (refer to config.cfg)
- new logging via datadog
- client tracks total item count
- updateInventory event to track item movements
- integrated NPWD support with phone item
- bug fixes
^0]])
end
end
Expand Down

0 comments on commit fa03c92

Please sign in to comment.