Automatic items
With Config.itens.automatico = true, gui_interface compares the inventory before and after and shows what entered (+) and what left (−).
| Inventory | How it reads |
|---|---|
| ox_inventory | event ox_inventory:itemCount |
| Default ESX | events esx:addInventoryItem / esx:removeInventoryItem |
| qb-inventory, ps-inventory, lj-inventory | event QBCore:Player:SetPlayerData |
| vRP | event itensNotify |
| other | call exports.gui_interface:Item(...) |
The code lives in functions.lua.
Images
Config.itens.imagem = "auto" uses the running inventory’s folder. For another inventory:
config.lua
Config.itens.imagem = "nui://my_inventory/html/images/%s.png" -- %s = item nameWithout an image, a small box shows.