Releases: overextended/ox_inventory
Releases · overextended/ox_inventory
v2.26.2
v2.26.1
Bug Fixes
- server/items: remove trailing commas from item conversion (Linden)
- server/qb: save item image as a string (Linden)
Chores
- bump manifest version to v2.26.1 (Manifest Bumper)
v2.26.0
Note on updating/merging changes
I'm starting to move the inventory back to using 'require', similar to older versions (pre-release even); see 397ef18.
This will see more changes in the future, such as breaking larger modules down into smaller parts.
-- previously
local Utils = client.utils
-- now becomes
local Utils = require 'modules.utils.client'
As mentioned above, I'm planning to break larger modules into smaller parts; and I have already done so with "item containers" 1610b8a.
If you previously had your own entries in "Items.containers", you have two options.
-- (Preferred) Use the function to define the containers properties
setContainerProperties('paperbag', {
slots = 5,
maxWeight = 1000,
blacklist = { 'testburger' }
})
-- (Lazy) Simply set the "containers" table as your old table; the format is the same.
-- This will likely be broken in a future update (v3)
local containers = {
['paperbag'] = {
size = {5, 1000},
blacklist = {
['testburger'] = true -- No burgers!
}
},
['pizzabox'] = {
size = {1, 1000},
whitelist = {
['pizza'] = true -- Pizza box for pizza only
}
}
}
Features
- qb: hunger/thirst/stress item compatibility (#1178) #1178 (Manason)
- qb: handle qb-inventory:HasItem (Linden)
- web: fetch undefined itemData on setup (Linden)
- client/items: support item image paths (Linden)
- init: TypeError (Linden)
- qb: compat for item.image (#1186) #1186 (Manason)
- web: sort crafting ingredients based on amount (Luke)
- client: support crafting a recipe n times (Linden)
Bug Fixes
- client: ignore weapon checks when wheel is enabled (Linden)
- client: disable aimedfiring for petrolcan weapon group (Linden)
- fxmanifest: weird dumb race condition (Linden)
- client: compare currentInventory.entity while accessing trunk (Linden)
- client: handle r*'s nonsense ammo clip sizes (Linden)
- client: prevent inventory locking up when people are weird (Linden)
- shared/items: update table ref for item exports (#1192) #1192 (varkosqc)
- server/crafting: return crafting success value (Linden)
- server: set inventory as changed on durability consumption (Linden)
- client: remove drop points when changing instance (Linden)
Code Refactoring
- get newdrop coords from client (Linden)
- client: add ignoreweapons convar to prevent mismatch/disarming (Linden)
- client/inventory: tweak dumpster access (Linden)
- client: glovebox and trunk access (Linden)
- client: set currentInventory.entity for glovebox (Linden)
- require modules (Linden)
- client/weapon: store weapon group (Linden)
- init: load ox_core in a thread (Linden)
- qb: remove server-side status handling (Linden)
- server/items: ignore nil values when parsing items (Linden)
- web: getItemUrl helper (Linden)
- server/items: create containers submodule (Linden)
- shared/items: reduce default durability drain (Linden)
- client: don't hard-set extinguisher and petrol can durability loss (Linden)
- server/qb: "SetInventory" message (Linden)
- server/inventory: use convar for save interval (#1185) #1185 (Nathan)
- server/inventory: set inv.changed for more functions (Linden)
- client/utils: deprecate DeleteObject (Linden)
- client: remove keys from disabled actions when busy (Linden)
- server/qb: prevent some nonsense error during item conversion (Linden)
Chores
v2.25.0
Features
- server/bridge: add isPlayerBoss #1160 (Linden)
- data/weapons: add missing weapons and ammo #1159 (DokaDoka)
- data/weapons: missing components and tweaks #1159 (DokaDoka)
- data/weapons: missing skins and tweaks #1159 (DokaDoka)
- improve locale for if attachment slot is occupied #1159 (DokaDoka)
- data/weapons: improve ammo labels #1159 (DokaDoka)
- weapons: handle special ammo types #1159 (Linden)
- client: basic durability check on slot use (Linden)
Bug Fixes
- data/weapons: marksman rifle mk2 label #1159 (DokaDoka)
- data/weapons: rail/mounted sights are in fact holo sights #1159 (DokaDoka)
- data/weapons: attachment types #1159 (DokaDoka)
- client: don't search for special ammo when reloading standard ammo #1159 (Linden)
- missing and invalid types (Linden)
- server/inventory: added fromSlot to swapItems hook (#1165) #1165 (Alessandro Alterno)
- server: /clearinv invId (Linden)
- server/inventory: set ammo type when unloading from weapon (Linden)
- client: use correct progressbar label when using item (Linden)
- server: missing durability-consumption check (Linden)
- server: check for slot during inventory setup (Linden)
Code Refactoring
- server: update commands #1160 (Linden)
- server: check isPlayerBoss for clearevidence #1160 (Linden)
- server/shops: move currency check and removal to functions (Linden)
- server/shops: clean up shop items setup (Linden)
- server/shops: lazy shop loading (Linden)
- server: use proper slot label for item use (Linden)
- client: add durability-consumption check to useSlot (Linden)
- server/items: remove esx compatibility warning (Linden)
Chores
- data/weapons: remove railcover component #1159 (DokaDoka)
- web/images: missing weapon images #1159 (Linden)
- web/images: improved weapon images #1159 (Linden)
- init: update ox_lib version dependency (Linden)
Commits
v2.24.2
v2.24.1
v2.24.0
Features
- server/inventory: CreateTemporaryStash (Linden)
- server/inventory: direct setters for inventory slots/maxWeight (Linden)
- server/shops: setup hook for buyItem (Linden)
- server/crafting: setup hook for craftItem (Linden)
Bug Fixes
- client: use "drop props" if drop was created with model (Linden)
- client/bridge: clear drops on logout (Linden)
- server/inventory: use correct locale for target inv (#1133) #1133 (david)
- modules/inventory/server: wrong maxWeight case (#1136) #1136 (Dolu)
- client: weapon mismatch race condition on equip (Linden)
- server/shops: purchasing from "global" shops (Linden)
- client: don't error on invalid updateSlots event (Linden)
- client: ignore weapon checks while drawing/holstering (Linden)
- client/weapon: prevent weapon from disarming multiple times (Linden)
Code Refactoring
- server/inventory: disable weapons mismatch loop (Linden)
- client: use inventory:weaponmismatch convar (Linden)
- server/inventory: registered stashes weight to maxWeight (Linden)
- server/inventory: inv argument safeguards (Linden)
- shared: remove source from setPlayerInventory (Linden)
- server/inventory: check if inventory has items before clearing (Linden)
Chores
v2.23.2
v2.23.1
v2.23.0
Features
- client/shops: support for shop peds (Linden)
- shared: remove ammo from weapons (Linden)
- client: getCurrentWeapon export (Linden)
Bug Fixes
- client: actually update current weapon ammo on unload (Linden)
- client: send value to removeAmmo nuicb (Linden)
- server/inventory: don't disarm player on weapon break (Linden)
- client: sync currentWeapon.metadata when updating slots (Linden)
- client: client-side durability calculation (Linden)
- client: sync ammo when autoreload fails (Linden)
- client: correction to opening player inventory (Linden)
Code Refactoring
- client: include warning about nuifocus when opening inventory (Linden)
- server/inventory: UpdateVehicle tweaks (Linden)
- shared/items: cash alias for money (Linden)
- web/typings: add ammoName to ItemData (Linden)
- web/SlotTooltip: include ammo type (Linden)
- client: send ammoname to ui, adjust locales (Linden)
- shared: use callback event for ammo removal (Linden)
- client: reduce weapon timer (Linden)
- web: memoize item data and remove early return (Luke)
- client: return on net events triggered by the client (Linden)
- client: check coords when opening player inventory (Linden)