Installation

Read carefully to ensure you've done everything required.

What do I need?

  • ESX (1.1+) / QBCore, or code your own bridge to work with your framework. (the bridge is fully accessible!)

  • Ox Lib 17 (Required, Works anywhere).

  • A supported inventory (ESX: OX or QS Inventory, QB: Any inventory that uses metadata including QS Inventory.)

Installation

⚠️Make sure you rename the folder from pickle_consumables-main to pickle_consumables prior to installing.⚠️

If you miss this step the script will not function as expected.

Navigate to the "_INSTALL" folder.

Import the images in the _INSTALL/images folder to your inventory image folder. (Varies on framework)

Add the items to your SQL if using ESX, or into the shared/items.lua for QB-Core.

["cigarette"] = {
    ['name'] =  'cigarette',
    ['label'] =  'Cigarette',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'cigarette.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["cigbox"] = {
    ['name'] =  'cigbox',
    ['label'] =  'Cigarette Box',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'cigbox.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["hamburger"] = {
    ['name'] =  'hamburger',
    ['label'] =  'Hamburger',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'hamburger.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["water"] = {
    ['name'] =  'water',
    ['label'] =  'Water',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'water.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["beer"] = {
    ['name'] =  'beer',
    ['label'] =  'Beer',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'beer.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["soda"] = {
    ['name'] =  'soda',
    ['label'] =  'Soda',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'soda.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["coffee"] = {
    ['name'] =  'coffee',
    ['label'] =  'Coffee',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'coffee.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["egobar"] = {
    ['name'] =  'egobar',
    ['label'] =  'Egobar',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'egobar.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["sandwich"] = {
    ['name'] =  'sandwich',
    ['label'] =  'Sandwich',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'sandwich.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["crisps"] = {
    ['name'] =  'crisps',
    ['label'] =  'Crisps',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'crisps.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["gin_shot"] = {
    ['name'] =  'gin_shot',
    ['label'] =  'Gin Shot',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'gin_shot.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["vodka_shot"] = {
    ['name'] =  'vodka_shot',
    ['label'] =  'Vodka Shot',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'vodka_shot.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["whiskey_bottle"] = {
    ['name'] =  'whiskey_bottle',
    ['label'] =  'Whiskey Bottle',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'whiskey_bottle.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["tequila_bottle"] = {
    ['name'] =  'tequila_bottle',
    ['label'] =  'Tequila Bottle',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'tequila_bottle.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},
["vodka_bottle"] = {
    ['name'] =  'vodka_bottle',
    ['label'] =  'Vodka Bottle',
    ['weight'] =  1000,
    ['type'] =  'item',
    ['image'] =  'vodka_bottle.png',
    ['unique'] =  false,
    ['useable'] =  true,
    ['shouldClose'] =  true,
    ['combinable'] =  nil,
    ['description'] =  ""
},

Last updated