Step 3
Install items
Add these items to the inventory, and also verify that they have the correct image.
In this case, the database and items of this resource will be a metadata, therefore it will not work with the default esx inventory, you will have to add the items in your core or inventory depending on the system you use
qb-core/shared/items
["camera"] = {
["name"] = "camera",
["label"] = "Camera",
["weight"] = 100,
["type"] = "item",
["image"] = "camera.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "A small and sweet casting."
},
["photo"] = {
["name"] = "photo",
["label"] = "Photo",
["weight"] = 1,
["type"] = "item",
["image"] = "photo.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "A small and sweet casting."
},
["camera_module"] = {
["name"] = "camera_module",
["label"] = "Camera module",
["weight"] = 20,
["type"] = "item",
["image"] = "camera_module.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "A small and sweet casting."
},
["broken_camera"] = {
["name"] = "broken_camera",
["label"] = "Broken Camera",
["weight"] = 100,
["type"] = "item",
["image"] = "broken_camera.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "A small and sweet casting."
},
For qb-core NEW VERSION ONLY
qb-core/shared/items.lua
camera = {
["name"] = "camera",
["label"] = "Camera",
["weight"] = 100,
["type"] = "item",
["image"] = "camera.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "A small and sweet casting."
},
photo = {
["name"] = "photo",
["label"] = "Photo",
["weight"] = 1,
["type"] = "item",
["image"] = "photo.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "A small and sweet casting."
},
camera_module = {
["name"] = "camera_module",
["label"] = "Camera module",
["weight"] = 20,
["type"] = "item",
["image"] = "camera_module.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "A small and sweet casting."
},
broken_camera = {
["name"] = "broken_camera",
["label"] = "Broken Camera",
["weight"] = 100,
["type"] = "item",
["image"] = "broken_camera.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "A small and sweet casting."
},
Last updated