Item setup

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

In-development version. These docs cover the testing build of DigitalPets. The official release is still documented on the GitBook linked in its README.

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/

OX is ox_inventory (ESX and Qbox that run ox use this tab). QB is qb-core/shared/items.lua. one_inventory only needs the PNG in that folder.

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.' },