mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:01:22 +00:00
a507ec6a3195e6182848cf375d0fdc384eca5011
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.
ESX Legacy
Discord - Website - Documentation
Want more resources? You can browse the Cfx.re Releases board for more!
ESX is the leading framework, trusted by over 12,000 communities to provide the highest quality roleplay servers on FiveM
💗 Supporters
Interested in helping us? Take a look at our patreon
| We would like to sincerely thank the following donors who helped fund the development of ESX. |
|---|
| Mohamad Buhamad - Michael Hein - RoadToSix - Montree Narathong |
| Saydoon - Muhannad alyamani - iSentrie - Wecity - Samuel Nicol |
| Kyle McShea - Artin - Mathias Christoffersen - Jaylan Yilmaz - Callum |
| CONGRESS KW - Michael Hein - Smery sitbon - daZepelin - CMF Community |
Description
Languages
JavaScript
62.3%
Lua
34.8%
TypeScript
1.2%
HTML
0.8%
CSS
0.7%
Other
0.2%