Skip to content

Commit

Permalink
chore: update version
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jan 15, 2022
1 parent 7b0c0cd commit 008a044
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 54 deletions.
54 changes: 1 addition & 53 deletions 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.8'
version '2.1.9'
repository 'https://github.com/overextended/ox_inventory'
description 'Slot-based inventory with metadata'

Expand Down Expand Up @@ -63,55 +63,3 @@ files {
'data/*.lua',
'data/**/*.lua'
}

-- FxDK settings
convar_category 'shared' {
'Shared inventory settings',
{
{'Activate specific event handlers and functions', '$inventory:framework', 'CV_MULTI', {
false, 'esx'
}},
{'Load specific language file from data/locales', '$inventory:locale', 'CV_MULTI', {
'en', 'cs', 'da', 'es', 'fr', 'it', 'nl', 'pt-br'
}},
{'Number of slots for player inventories', '$inventory:slots', 'CV_INT', 50},
{'Maximum carry capacity for players, in kilograms', '$inventory:weight', 'CV_INT', 30000},
{'Weapons will reload after reaching 0 ammo', '$inventory:autoreload', 'CV_BOOL', false},
{'Blur the screen while accessing the inventory', '$inventory:screenblur', 'CV_BOOL', true},
{'Trim whitespace from vehicle plates when checking owned vehicles', '$inventory:trimplate', 'CV_BOOL', true},
{'Integrated support for qtarget stashes, shops, etc', '$inventory:qtarget', 'CV_BOOL', true},
{'Default hotkeys to access primary and secondary inventories, and hotbar', '$inventory:keys', 'CV_STRING', '["F2", "K", "TAB"]'},
{'Enable control action when inventory is open', '$inventory:enablekeys', 'CV_STRING', '[249]'},
{'Jobs with access to police armoury, evidence lockers, etc', '$inventory:police', 'CV_STRING', '["police", "sheriff"]'}
}
}

convar_category 'server' {
'Server inventory settings',
{
{'Basic text-file logging (improvements are planned)', 'inventory:logs', 'CV_BOOL', true},
{'Item prices fluctuate in shops', 'inventory:randomprices', 'CV_BOOL', true},
{'Compare current version to latest release on GitHub', 'inventory:versioncheck', 'CV_BOOL', true},
{'Loot will randomly generate inside unowned vehicles and dumpsters', 'inventory:randomloot', 'CV_BOOL', true},
{'Minimum job grade to remove items from evidence lockers', 'inventory:evidencegrade', 'CV_INT', 2},
{'Stashes will be wiped after remaining unchanged for the given time', 'inventory:clearstashes', 'CV_STRING', "6 MONTH"},
{'Set the contents of randomly generated inventories', 'inventory:loot', 'CV_STRING', {[[
"vehicle": [
["cola", 1, 1],
["water", 1, 1],
["garbage", 1, 2, 50],
["panties", 1, 1, 5],
["money", 1, 50],
["money", 200, 400, 5],
["bandage", 1, 1]
],
"dumpster": [
["mustard", 1, 1],
["garbage", 1, 3],
["money", 1, 10],
["burger", 1, 1]
]
]]}}
}
}
10 changes: 9 additions & 1 deletion version.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ if shared.versioncheck then
if error == 200 and response 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)\n ^3- https://github.com/overextended/ox_inventory/releases^0'):format(latest, version))
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
^0]])
end
end
end, 'GET')
Expand Down

0 comments on commit 008a044

Please sign in to comment.