Shop and crafting bench
New screens for ox_inventory's shops and crafting benches, with card payment.
Shops and crafting benches still come from the ox_inventory configuration (data/shops.lua, data/crafting.lua). The interface only shows them in a new way.
Shop
- Product cards with search
- Receipt: collect products, change the amount with
+and- - Pay with cash or card
- Drop field at the bottom right (
KoInv.DropZones.shop)
Paying cash works like in ox_inventory. Card payment takes the money from the ESX bank account. The server checks the same things ox checks when buying: stock, licence, grade, weight and stacking. The account is charged before the item is given. If giving fails, you get the money back.
Only products priced in money can be paid by card. Without es_extended card payment does not work.
Crafting bench
- Recipe list with search
- For each recipe: what you have, what is missing, tools
- Pick an amount with
×N, then craft - Drop field at the bottom right (
KoInv.DropZones.crafting)
Drop field
If you drag an item from your pockets onto "Drag here to drop", it lands on the ground. The shop or bench stays open. Every drop makes its own pile on the ground.
