Skip to main content

One post tagged with "qb"

View All Tags

· One min read
Swkeep

How to add new item​

QBCore​

To add new items to qbcore, follow these steps:

  1. Open qb-core/shared/items.lua (MAKE BACKUP BEFORE EDITING!)
  2. Add the correct line of code of a similar item (copy & paste similar line of code) and edit the item details such as weight, description and so on… then save changes.
  3. Drag & Drop the filename.png into qb-inventory/html/images folder.
["ring1"] = {
["name"] = "ring1",
["label"] = "A ring?",
["weight"] = 1000,
["type"] = "item",
["image"] = "ring1.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "The One Ring appeared perfectly plain and featureless, but when heated, the inscription appeared in fiery letters on the Ring."
},

ESX​

  1. Open ox_inventory/data/items.lua and add the item name, label, weight and other options. Save the changes.
  2. Drag & Drop the filename.png into ox_inventory/html/img/items folder.
['pizza'] = {
label = 'Pizza',
weight = 500,
stack = true,
close = true,
}