20 Commits

Author SHA1 Message Date
_Not_ 8888c6ce14 chore: update version to 1.14.1 across all fxmanifest files 2026-08-15 14:40:34 -05:00
_Not_ 0e01522372 Merge pull request #1826 from seltonmt012/fix/inventory-usable-collision
fix(esx_inventory/client): stop overloading the menu usable flag
2026-08-14 20:14:27 -05:00
Selt 0fb74a74ef fix(esx_inventory): let the quantity dialog accept a corrected amount
The quantity dialog resolved its promise with nil on an invalid amount, so the
give/remove had already aborted by the time the player typed a valid value. The
dialog stayed open and a corrected amount did nothing.

Dropping the early resolve leaves the promise pending, so the same open dialog
accepts the retry and drops/gives the item. Cancel still resolves nil.

Tested on artifact 25770: entered an over-count amount, got "invalid amount",
corrected to a valid amount. Before, nothing happened; after, the item was
dropped.
2026-07-27 20:12:50 +02:00
Selt a507ec6a31 fix(esx_inventory/client): stop overloading the menu usable flag
esx_menu_default treats usable == false as "this row cannot be submitted".
esx_inventory was filling the same field with its own meaning - whether an
item has a use callback - and set it to false for accounts, for weapons and
for every item without a registered callback.

The result was that pressing enter on cash, bank, dirty money, any weapon or
any non consumable item did nothing at all. buildItemActionMenu was never
reached, even though those entries carry canRemove and the submenu would have
offered give and throw.

The action menu needs the value for its own "use" entry, so it moves to a
separate canUse field. The weight row keeps usable = false, since not being
submittable is correct there.

Verified on artifact 25770. Before: enter on cash and on bread did nothing.
After: cash offers throw and return, bank offers only return because it is
not droppable, bread offers throw and return without a use entry, and the
weight row still cannot be selected.
2026-07-27 16:17:28 +02:00
ASTROWwwW 511f5fc74e chore: bump manifest version to 1.14.0 2026-07-18 16:58:18 +02:00
zykem#0643 efedf3c303 chore: bump manifest version to 1.13.5 2026-05-08 11:30:59 +02:00
Mr Sneaky 01470dec92 Create ar.lua 2025-10-01 22:16:13 -05:00
Manifest Bumper 69fe76ca38 chore: bump manifest version to 1.13.4 2025-10-01 22:16:13 -05:00
Kenshin13 4cb6cb70a4 fix(esx_inventory): fix return arrow 2025-10-01 22:16:12 -05:00
Manifest Bumper 73ccea1b4e chore: bump manifest version to 1.13.3 2025-08-19 22:39:13 +00:00
Manifest Bumper 224d06fad2 chore: bump manifest version to 1.13.2 2025-08-13 15:34:40 +00:00
Kenshin13 f8c59020b7 refactor(esx_inventory/client/main): GetPlayerData no longer needed 2025-08-13 15:13:46 +02:00
Kenshin13 524484abb6 fix(esx_inventory): fix loadout append 2025-08-13 12:38:23 +02:00
Kenshin13 ea87215a62 esx_inventory: enable oal 2025-08-12 21:35:23 +02:00
Kenshin13 b291c5fd42 refactor(esx_inventory/client/main): implement requested changes 2025-08-12 21:33:08 +02:00
Kenshin13 43e4c11426 refactor(esx_inventory/client/main): promise based quantity dialog 2025-08-12 21:25:12 +02:00
Kenshin13 5a596e5fad fix(esx_inventory/client/main): use playerdata maxweight 2025-08-12 19:39:39 +02:00
Kenshin13 a36414c01e Remove server_scripts entry from fxmanifest.lua 2025-08-12 19:36:49 +02:00
Kenshin13 1b9389417b fix(esx_inventory/config/main): auto-detect locale 2025-08-12 19:34:01 +02:00
Kenshin13 c772d7dba8 refactor: esx inv into menu_default & separate resource 2025-08-12 19:32:38 +02:00