Item setup

Items for DigitalPets. One item. The item name is digital_pet.

One item, digital_pet.

ItemLabel
digital_petDigital Pet

Copy digital_pet.png from [INSTALL]/images/ into:

InventoryImage folder
ox_inventoryox_inventory/web/images/
qb-inventory / ps-inventoryhtml/images/
one_inventoryone_inventory/web/images/
Kora (kora_inventory)kora_inventory/images/

OX is ox_inventory (ESX and Qbox that run ox use this tab). QB is qb-core/shared/items.lua. one_inventory needs the PNG in one_inventory/web/images/ and the item added from the ox_inventory entry.

Required: set Config.Inventory = "one_inventory" in Newb_Bridge/settings/bridge_resources.lua. one_inventory provides itself as ox_inventory and is not fully compatible with its image paths, so on "auto" item images do not load. See Newb_Bridge configuration.

Add to ox_inventory/data/items.lua:

['digital_pet'] = {
    label = 'Digital Pet',
    weight = 500,
    stack = false,
    close = true,
    description = 'A pocket digital pet. Use it to open the Digital Pets toy.',
},

Add to your QBCore shared items (qb-core/shared/items.lua):

['digital_pet'] = { name = 'digital_pet', label = 'Digital Pet', weight = 500, type = 'item', image = 'digital_pet.png', unique = true, useable = true, shouldClose = true, description = 'A pocket digital pet. Use it to open the Digital Pets toy.' },

Kora keeps items in its shared registry, seeded from kora_core/shared/items.lua. Add these records to the KoraCoreSeed.items table in that file, then copy the PNGs into kora_inventory/images/. Skip any item name that is already in it.

    { name = 'digital_pet', label = 'Digital Pet', weight = 500, type = 'item', image = 'digital_pet.png', unique = true, useable = true, shouldClose = true, description = 'A pocket digital pet. Use it to open the Digital Pets toy.' },

The same record ships as [INSTALL]/items/kora_items.txt.