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)