Items

ItemLabelWhat it does
outfitbagOutfit BagDrop it, open it, change out of it

The lines to paste are also in install/items.txt. The item image is install/images/outfitbag.png.

The bag must be unique: one item, one bag. Stacked bags become one bag holding one set of outfits.

qb-inventory

Paste inside QBCore.Shared.Items in qb-core/shared/items.lua, and copy install/images/outfitbag.png into qb-inventory/html/images/.

['outfitbag'] = { name = 'outfitbag', label = 'Outfit Bag', weight = 1200, type = 'item', image = 'outfitbag.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Drop it, open it, change out of it.' },

ox_inventory

For Qbox, and ESX servers using ox_inventory. Paste into ox_inventory/data/items.lua, and copy the image into ox_inventory/web/images/.

['outfitbag'] = {
    label = 'Outfit Bag',
    weight = 1200,
    stack = false,
    close = true,
    consume = 0,
    description = 'Drop it, open it, change out of it.',
    server = {
        export = 'fusing-outfitbag.useBag',
    },
},

Keep server.export and consume = 0. The first tells this resource the bag was used, the second stops ox_inventory removing the bag when it is used.

ESX's own inventory

Nothing to do. The bag adds itself to the items table on first start. To add it by hand instead, run install/esx_item.sql:

INSERT INTO items (name, label, weight, rare, can_remove)
VALUES ('outfitbag', 'Outfit Bag', 2, 0, 1);