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.
| Item | Label |
|---|---|
digital_pet | Digital Pet |
Copy digital_pet.png from [INSTALL]/IMAGES/ into:
| Inventory | Image folder |
|---|---|
| ox_inventory | ox_inventory/web/images/ |
| qb-inventory / ps-inventory | html/images/ |
| one_inventory | one_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.' },