πŸ”Installation

1

STEP 1:

Drag and drop pixel-consumables into your resources folder.

2

STEP 2:

You need to grant the necessary permissions for the UI to open and ensure the resource starts.

Navigate to your server.cfg and add the following lines preferably at the bottom of it:

# UI opening permissions.
add_ace group.admin pixel.consumables.open allow

# Starting the resource.
ensure pixel-consumables

Make sure to ensure pixel-consumables after your framework and ox_lib.

3

STEP 3:

Inset the items listed below for your respective framework.

Insert into qbcore/shared/items.lua

-- Foods --
pixelsandwich = { name = 'pixelsandwich', label = 'Sandwich', weight = 200, type = 'item', image = 'pixelsandwich.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy food!' },
pixelbowlachilli = { name = 'pixelbowlachilli', label = 'Chilli Bowl', weight = 200, type = 'item', image = 'pixelbowlachilli.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy food!' },
pixelbowlapozole = { name = 'pixelbowlapozole', label = 'Pozole', weight = 200, type = 'item', image = 'pixelbowlapozole.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy food!' },
pixelburger = { name = 'pixelburger', label = 'Burger', weight = 200, type = 'item', image = 'pixelburger.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy food!' },
pixeltaco = { name = 'pixeltaco', label = 'Taco', weight = 200, type = 'item', image = 'pixeltaco.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy food!' },

-- Snacks --
pixelegochaserbar = { name = 'pixelegochaserbar', label = 'Egochaser', weight = 200, type = 'item', image = 'pixelegochaserbar.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy snack!' },
pixelmeteoritebar = { name = 'pixelmeteoritebar', label = 'Meteorite', weight = 200, type = 'item', image = 'pixelmeteoritebar.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy snack!' },
pixelearthquakebar = { name = 'pixelearthquakebar', label = 'Earthquake', weight = 200, type = 'item', image = 'pixelearthquakebar.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy snack!' },

-- Deserts --
pixelmuffin = { name = 'pixelmuffin', label = 'Muffin', weight = 200, type = 'item', image = 'pixelmuffin.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy dessert!' },
pixelcakeslice = { name = 'pixelcakeslice', label = 'Cake Slice', weight = 200, type = 'item', image = 'pixelcakeslice.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy dessert!' },
pixelcookie = { name = 'pixelcookie', label = 'Cookie', weight = 200, type = 'item', image = 'pixelcookie.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy dessert!' },
pixelchococookie = { name = 'pixelchococookie', label = 'Chocolate Cookie', weight = 200, type = 'item', image = 'pixelchococookie.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy dessert!' },
pixelchocodonut = { name = 'pixelchocodonut', label = 'Chocolate Donut', weight = 200, type = 'item', image = 'pixelchocodonut.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy dessert!' },
pixelstrawdonut = { name = 'pixelstrawdonut', label = 'Strawberry Donut', weight = 200, type = 'item', image = 'pixelstrawdonut.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy dessert!' },
pixelchocoicecone = { name = 'pixelchocoicecone', label = 'Chocolate Ice Cream', weight = 200, type = 'item', image = 'pixelchocoicecone.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy dessert!' },
pixelstrawicecone = { name = 'pixelstrawicecone', label = 'Strawberry Ice Cream', weight = 200, type = 'item', image = 'pixelstrawicecone.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy dessert!' },
pixelvanillaicecone = { name = 'pixelvanillaicecone', label = 'Vanilla Ice Cream', weight = 200, type = 'item', image = 'pixelvanillaicecone.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Yummy dessert!' },

-- Drinks --
pixelcola = { name = 'pixelcola', label = 'Cola', weight = 200, type = 'item', image = 'pixelcola.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Tasty drink!' },
pixelsprunk = { name = 'pixelsprunk', label = 'Sprunk', weight = 200, type = 'item', image = 'pixelsprunk.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Tasty drink!' },
pixelorangotang = { name = 'pixelorangotang', label = 'OrangOTang', weight = 200, type = 'item', image = 'pixelorangotang.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Tasty drink!' },
pixeljunkenergy = { name = 'pixeljunkenergy', label = 'Junk Energy', weight = 200, type = 'item', image = 'pixeljunkenergy.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Tasty drink!' },
pixelcoffee = { name = 'pixelcoffee', label = 'Coffee', weight = 200, type = 'item', image = 'pixelcoffee.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Tasty drink!' },
pixelwater = { name = 'pixelwater', label = 'Water Bottle', weight = 200, type = 'item', image = 'pixelwater.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Tasty drink!' },

-- Alcohol --
pixelwhiskey = { name = 'pixelwhiskey', label = 'Whiskey', weight = 200, type = 'item', image = 'pixelwhiskey.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Lets get drunk!' },
pixelbeer = { name = 'pixelbeer', label = 'Beer', weight = 200, type = 'item', image = 'pixelbeer.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Lets get drunk!' },
pixelvodka = { name = 'pixelvodka', label = 'Vodka', weight = 200, type = 'item', image = 'pixelvodka.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Lets get drunk!' },
pixelchampagne = { name = 'pixelchampagne', label = 'Champagne', weight = 200, type = 'item', image = 'pixelchampagne.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Lets get drunk!' },
pixeltequilla = { name = 'pixeltequilla', label = 'Tequilla', weight = 200, type = 'item', image = 'pixeltequilla.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Lets get drunk!' },
pixelwine = { name = 'pixelwine', label = 'Wine', weight = 200, type = 'item', image = 'pixelwine.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Lets get drunk!' },

-- Drugs --
pixelcigs = { name = 'pixelcigs', label = 'Redwood Cigarettes', weight = 250, type = 'item', image = 'pixelcigs.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Pack of Cigarettes, Made in USA' },
pixelcigarette = { name = 'pixelcigarette', label = 'Cigarette', weight = 250, type = 'item', image = 'pixelcigarette.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Smokeable Tobacco' },
pixeljoint = { name = 'pixeljoint', label = 'Joint', weight = 0, type = 'item', image = 'pixeljoint.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'To chill out' },
pixelcocaine = { name = 'pixelcocaine', label = 'Cocaine', weight = 0, type = 'item', image = 'pixelcocaine.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'To chill out' },
pixelmeth = { name = 'pixelmeth', label = 'Meth', weight = 0, type = 'item', image = 'pixelmeth.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'To chill out' },
pixelshrooms = { name = 'pixelshrooms', label = 'Shrooms', weight = 0, type = 'item', image = 'pixelshrooms.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'To chill out' },
pixelecstasy = { name = 'pixelecstasy', label = 'Ecstasy', weight = 0, type = 'item', image = 'pixelecstasy.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'To chill out' },
pixeloxy = { name = 'pixeloxy', label = 'Oxy', weight = 0, type = 'item', image = 'pixeloxy.png', unique 
4

STEP 4:

If applicable, you can incorporate these images into your inventory or scripts as needed.

Last updated