Skip to content

Releases: overextended/ox_inventory

v2.26.2

17 Mar 22:11
Compare
Choose a tag to compare

Bug Fixes

  • client: disable rolling while reloading (#1201) #1201 (hyprell)
  • init: get weapon hash for ignoreweapons convar (Linden)
  • client: use metadata.label when crafting item (Linden)
  • server/shops: adjust slot weight for metadata (Linden)

Code Refactoring

  • server/items: improve item conversion formatting (Linden)
  • init: prevent errors from bad configuration (Linden)
  • server/inventory: add ignoreCount param to SlotWeight (Linden)
  • init: move ignoreweapons to client (Linden)

v2.26.1

10 Mar 19:08
Compare
Choose a tag to compare

Bug Fixes

  • server/items: remove trailing commas from item conversion (Linden)
  • server/qb: save item image as a string (Linden)

Chores

v2.26.0

10 Mar 04:25
Compare
Choose a tag to compare

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

27 Feb 05:40
Compare
Choose a tag to compare

Features

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

23 Feb 23:39
Compare
Choose a tag to compare

Bug Fixes

  • client/weapon: request weapon asset (Linden)
  • client/weapon: remove early return on disarm (Linden)

Code Refactoring

  • client/weapon: use weapon objects when equipping (Linden)

Chores

v2.24.1

19 Feb 04:12
Compare
Choose a tag to compare

Bug Fixes

  • client/weapon: race condition when disarmed while drawing weapon (Linden)

v2.24.0

18 Feb 07:01
Compare
Choose a tag to compare

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

  • OxInventory type and type-fixes (Linden)
  • server/inventory: inventory type alias (Linden)
  • server/inventory: type fixes (Linden)

v2.23.2

10 Feb 01:03
Compare
Choose a tag to compare

Bug Fixes

  • client: disarm player before giving equipped weapon (Linden)
  • client: don't override currentWeapon metadata with nil (Linden)
  • client/shops: use target distance for ped (Linden)

Chores

v2.23.1

07 Feb 12:08
Compare
Choose a tag to compare

Bug Fixes

  • client/shops: don't draw markers for ped shops (Linden)
  • client/shops: use goto to continue iterating (Linden)

Code Refactoring

  • init: use GetConvarInt for bool (Linden)

Chores

v2.23.0

07 Feb 03:53
Compare
Choose a tag to compare

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)

Chores

  • locales/en: ammo_type (Linden)
  • locales/en: ui_remove_ammo (Linden)