Installation
Dependencies
QBCore Framework ox_lib
ESX Framework ox_lib ox_inventory (or custom inventory)
How to install
Drag the script in your folder
Add the following item to yourinventory/data/items.lua
QBCore users to qbcore/shared/items.lua
Add the item image to your inventory/images
If you are using a different inventory then literally create the same items for your custom inventory.
Add to your qbcore/shared/items.lua
-- Chicken Slaughtering
["slaughted_chicken"] = {["name"] = "slaughted_chicken", ["label"] = "Slaughted Chicken", ["weight"] = 100, ["type"] = "item", ["image"] = "slaughted_chicken.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["packed_chicken"] = {["name"] = "packed_chicken", ["label"] = "Chicken Pack", ["weight"] = 30, ["type"] = "item", ["image"] = "packed_chicken.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["chicken_knife"] = {["name"] = "chicken_knife", ["label"] = "Chicken Knife", ["weight"] = 10, ["type"] = "item", ["image"] = "chicken_knife.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["chicken_chicken"] = {["name"] = "chicken_chicken", ["label"] = "Chicken", ["weight"] = 300, ["type"] = "item", ["image"] = "chicken_chicken.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
Example for ox_inventory
-- Chicken Slaughtering
['slaughted_chicken'] = {
label = 'Slaughted Chicken',
weight = 100,
client = {
image = 'slaughted_chicken.png',
},
},
['packed_chicken'] = {
label = 'Packed Chicken',
weight = 30,
client = {
image = 'packed_chicken.png',
},
},
['chicken_knife'] = {
label = 'Chicken Knife',
weight = 10,
client = {
image = 'chicken_knife.png',
},
},
['chicken_chicken'] = {
label = 'Chicken',
weight = 300,
client = {
image = 'chicken_chicken.png',
},
},
Last updated