Releases: overextended/ox_inventory
Releases · overextended/ox_inventory
v2.29.1
Bug Fixes
- client/weapon: always trigger updateWeapon on disarm (Linden)
- client: trigger disarm before swapping weapons (Linden)
- server: set inventory.weapon after item use (Linden)
Code Refactoring
- client: use GetSlotIdWithItem for reloading ammo (Linden)
Commits
- 0bf8fe5: Revert "fix(client/weapon): always trigger updateWeapon on disarm" (Linden)
v2.29.0
Features
- server/inventory: new item iterators (Linden)
- server/qb: item compatibility properties (Linden)
- server/inventory: stashes accept array of coordinates (#1277) #1277 (Matin)
- crafting: crafting location not required (#1299) #1299 (Manason)
- client/inventory: getters and item iterators (Linden)
- server/inventory: open/close inventory events (Linden)
- server/inventory: GetContainerFromSlot (Linden)
Bug Fixes
- init: missing comma (#1306) #1306 (TheFantomas)
- client: set ignoreSecurityChecks on viewInventory (Linden)
- server: sync inventory state when using viewinv (Linden)
- server/inventory: sync items for non-player inventories (Linden)
- crafting: coords nil-check (Linden)
- client/crafting: actually setup coord-less crafting (Linden)
- client: handle some errors from invalid craft data (Linden)
- web/helpers: don't accept empty slot for getItemUrl (Linden)
- web: use getItemUrl for currency and crafting (Linden)
Code Refactoring
- server: use GetSlotWithItem as useItem fallback (Linden)
- client: dropmodel convar (#1260) #1260 (mikigoalie)
- server: tweak openInventory callback event (Linden)
- client: allow primary keybind to open glovebox (Linden)
- client: clear registerCommands function after first call (Linden)
- server/inventory: close player inventory on invalid swapItems (Linden)
- client/items: __call metamethod (Linden)
- server/inventory: metadata-checks consistency (Linden)
- move init.lua to root dir (Linden)
- server/inventory: change save interval to cron (Linden)
- shared/items: strip url() from item image (Linden)
- web/helpers: accept string for getItemUrl (Linden)
Chores
- remove padding from fxmanifest version (Linden)
v2.28.4
v2.28.3
Bug Fixes
- web: cancel drag when dragged item is moved (LukeWasTaken)
Code Refactoring
- server/inventory: setup callback event for updateWeapon (Linden)
- client: currentWeapon metadata, and reloading tweaks (Linden)
- swapItems sync tweaks (Linden)
Commits
- 461a88b: Revert "fix(web): rely on server updates to the slots when in game" (LukeWasTaken)
v2.28.2
v2.28.1
v2.28.0
Marked as a pre-release since I can't be certain about bugs or exploits.
This update is primarily about "inventory sync" or "multi-accessible inventories".
Multiple players should now be able to access the same inventory at the same time, and any changes made will be synced between all players using the inventory (and the owner, if it's a player). You still cannot access another player's inventory if they are using it.
- The UI has been updated to prevent a visual error / desync between server and UI states.
- Use in production at your own peril, it needs testing for desync issues, exploits, etc.
Features
- web: display items for which the grade isn't met as disabled (LukeWasTaken)
- client: nested custom context buttons (#1266) #1266 (Alexander)
- server: initial multi-access inventory tweaks (Linden)
- server/inventory: sync inventory state between players (Linden)
- server: sync slot updates with all players using inventory (Linden)
- server/inventory: GetSlotForItem (Linden)
- client: add event for "forceOpenInventory" (Linden)
- server: add forceOpenInventory export (Linden)
- server/inventory: export GetSlotForItem and GetEmptySlot (Linden)
- client: allow notification suppression in updateInventory (Linden)
Bug Fixes
- server/inventory: check inventory id ref before attempting to load (Linden)
- web: live update inventory weight when using SetMaxWeight (LukeWasTaken)
- client: check weapon specialAmmo is a string (Linden)
- server/items: nil metadata (#1246) #1246 (Maciej Ratyński)
- server/inventory: require utils module (Linden)
- server: check inv.open isn't equal to source (Linden)
- server/shops: remove guard clause (Linden)
- server/hooks: nil fromInventory when using shop (#1248) #1248 (FjamZoo)
- client/esx: update Weapons module ref (Linden)
- server/items: handle missing item.name for qb items (Linden)
- client: check if weapon is melee before incrementing value (Linden)
- client: don't override durability when updating currentWeapon (Linden)
- server/inventory: set correct container weight on failed swap slots (Linden)
- client: crafting distance check (#1272) #1272 (Martijn)
- client: always reset invBusy after item use (Linden)
- server: prevent opening other player inventory when it is open (Linden)
- client: refresh correct inventory/slots during updateSlots (Linden)
- server/inventory: swapslots sync with owner (Linden)
- server/inventory: remove itemNotify from swapSlots (Linden)
- web: rely on server updates to the slots when in game (LukeWasTaken)
- server/inventory: newdrop return data (Linden)
- client: buying, confiscating inv, and returning inv items data (Linden)
- server: don't close inventory when opening a drop or container (Linden)
- server/inventory: clear containerSlot on inventory close (Linden)
- client: update inventory when buying items (Linden)
- server/inventory: stack items with AddItem (Linden)
- server/inventory: sync swapItems with owner (Linden)
- server/inventory: ignore sync slots for owner if they triggered it (Linden)
- client/qb: prevent inventory access while in last stand state (#1284) #1284 (Manason)
- client/qb: qb last stand checking (#1285) #1285 (Manason)
Code Refactoring
- server/items: remove non-string specialAmmo from weapons (Linden)
- server: type safety and minor tweak to inv.open (Linden)
- server/shops: more type safety (Linden)
- client: invBusy tweaks when using item (Linden)
- client: item notifications (Linden)
- server/inventory: lock inventory-slots during swap event (Linden)
- syncSlots tweak (Linden)
- server/inventory: match swapItems response to sync event (Linden)
- client: combine updateInventory iterators (Linden)
- server/inventory: cancel swap if another swap is active (Linden)
- client: only refresh shop slots on buyItem (Linden)
- server/inventory: allow giving items to open inventories (Linden)
- update ox_lib dependency (Linden)
- server/inventory: reduce nesting in swapItems event (Linden)
- server/inventory: prevent giveItem when slots are in-use (Linden)
- client/weapon: revert weapon object ([Linde...
v2.27.1
v2.27.0
Features
- server/shops: option for grade to be an array of specific grades (#1221) #1221 (Manason)
- server/inventory: RemoveItem responses (Linden)
- locales: Serbian locales (#1233) #1233 (Nemanja)
Bug Fixes
- bridge/qb: negative stress value (#1214) #1214 (Tristan)
- server/shops: license check ignored if using item count (#1218) #1218 (Tristan)
- client: blur screen when using /viewinv (Linden)
- shared/items: respect client.image on weapons, components, and ammo (Linden)
- client: trigger autoreload in new thread (Linden)
- client: possible ammo/durability desync (Linden)
- init: allow script files to load when people fuck their load order (Linden)
- server/utils: load module (#1235) #1235 (FjamZoo)
- server/shops: correctly split shoptype and id (#1236) #1236 (Mahan Moulaei)
Code Refactoring
- server/inventory: reduce nesting in AddItem (Linden)
- web/ItemNotifications: use SlotData for label and image (Linden)
- update ItemNotify input (Linden)
- server/inventory: reduce time to remove inventories (Linden)
- server: update responses for failed commands (Linden)
- client: allow inventory to open when other script has focus (Linden)