Installation
If you aren't familiar with programming or just you don't know how to set up the script, we present our installation guide which is as comprehensive as possible so you don't have any difficulties.
STEP 1 - Dependencies
STEP 2 - Resource order
start es_extended/qb-core/qbx_core
start mst_breathalyzerSTEP 3 - Database
Without adding these items to the database, the script will not work!
DELETE FROM items WHERE name = 'breathalyzer';
DELETE FROM items WHERE name = 'whiskey';
DELETE FROM items WHERE name = 'vodka';
DELETE FROM items WHERE name = 'rum';
DELETE FROM items WHERE name = 'brandy';
DELETE FROM items WHERE name = 'tequila';
DELETE FROM items WHERE name = 'champagne';
DELETE FROM items WHERE name = 'red_wine';
DELETE FROM items WHERE name = 'white_wine';
DELETE FROM items WHERE name = 'rose';
DELETE FROM items WHERE name = 'beer';
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
('breathalyzer', 'Breathalyzer', 1),
('whiskey', 'Whiskey', 1),
('vodka', 'Vodka', 1),
('rum', 'Rum', 1),
('brandy', 'Brandy', 1),
('tequila', 'Tequila', 1),
('champagne', 'Champagne', 1),
('red_wine', 'Red Wine', 1),
('white_wine', 'White Wine', 1),
('rose', 'Rose', 1),
('beer', 'Beer', 1)
;breathalyzer = { name = 'breathalyzer', label = 'Breathalyzer', weight = 1, type = 'item', image = 'breathalyzer.png', unique = false, useable = true, shouldClose = true, description = 'Check someone’s blood alcohol level' },
whiskey = { name = 'whiskey', label = 'Whiskey', weight = 1, type = 'item', image = 'whiskey.png', unique = false, useable = true, shouldClose = true, description = 'A strong drink for a strong person' },
vodka = { name = 'vodka', label = 'Vodka', weight = 1, type = 'item', image = 'vodka.png', unique = false, useable = true, shouldClose = true, description = 'Clear and powerful spirit' },
rum = { name = 'rum', label = 'Rum', weight = 1, type = 'item', image = 'rum.png', unique = false, useable = true, shouldClose = true, description = 'Sweet spirit from sugarcane' },
brandy = { name = 'brandy', label = 'Brandy', weight = 1, type = 'item', image = 'brandy.png', unique = false, useable = true, shouldClose = true, description = 'Smooth, aged liquor' },
tequila = { name = 'tequila', label = 'Tequila', weight = 1, type = 'item', image = 'tequila.png', unique = false, useable = true, shouldClose = true, description = 'Mexican spirit made from agave' },
champagne = { name = 'champagne', label = 'Champagne', weight = 1, type = 'item', image = 'champagne.png', unique = false, useable = true, shouldClose = true, description = 'Celebrate with bubbles' },
red_wine = { name = 'red_wine', label = 'Red Wine', weight = 1, type = 'item', image = 'red_wine.png', unique = false, useable = true, shouldClose = true, description = 'A glass of rich red wine' },
white_wine = { name = 'white_wine', label = 'White Wine', weight = 1, type = 'item', image = 'white_wine.png', unique = false, useable = true, shouldClose = true, description = 'A crisp, light wine' },
rose = { name = 'rose', label = 'Rose', weight = 1, type = 'item', image = 'rose.png', unique = false, useable = true, shouldClose = true, description = 'A pink wine for sunny days' },
beer = { name = 'beer', label = 'Beer', weight = 1, type = 'item', image = 'beer.png', unique = false, useable = true, shouldClose = true, description = 'Cold and refreshing pint' },['breathalyzer'] = { ['name'] = 'breathalyzer', ['label'] = 'Breathalyzer', ['weight'] = 1, ['type'] = 'item', ['image'] = 'breathalyzer.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Check someone’s blood alcohol level' },
['whiskey'] = { ['name'] = 'whiskey', ['label'] = 'Whiskey', ['weight'] = 1, ['type'] = 'item', ['image'] = 'whiskey.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A strong drink for a strong person' },
['vodka'] = { ['name'] = 'vodka', ['label'] = 'Vodka', ['weight'] = 1, ['type'] = 'item', ['image'] = 'vodka.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Clear and powerful spirit' },
['rum'] = { ['name'] = 'rum', ['label'] = 'Rum', ['weight'] = 1, ['type'] = 'item', ['image'] = 'rum.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Sweet spirit from sugarcane' },
['brandy'] = { ['name'] = 'brandy', ['label'] = 'Brandy', ['weight'] = 1, ['type'] = 'item', ['image'] = 'brandy.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Smooth, aged liquor' },
['tequila'] = { ['name'] = 'tequila', ['label'] = 'Tequila', ['weight'] = 1, ['type'] = 'item', ['image'] = 'tequila.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Mexican spirit made from agave' },
['champagne'] = { ['name'] = 'champagne', ['label'] = 'Champagne', ['weight'] = 1, ['type'] = 'item', ['image'] = 'champagne.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Celebrate with bubbles' },
['red_wine'] = { ['name'] = 'red_wine', ['label'] = 'Red Wine', ['weight'] = 1, ['type'] = 'item', ['image'] = 'red_wine.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A glass of rich red wine' },
['white_wine'] = { ['name'] = 'white_wine', ['label'] = 'White Wine', ['weight'] = 1, ['type'] = 'item', ['image'] = 'white_wine.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A crisp, light wine' },
['rose'] = { ['name'] = 'rose', ['label'] = 'Rose', ['weight'] = 1, ['type'] = 'item', ['image'] = 'rose.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A pink wine for sunny days' },
['beer'] = { ['name'] = 'beer', ['label'] = 'Beer', ['weight'] = 1, ['type'] = 'item', ['image'] = 'beer.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Cold and refreshing pint' },['breathalyzer'] = { label = 'Breathalyzer', stack = false, weight = 10, client = { image = 'breathalyzer.png' } },
['whiskey'] = { label = 'Whiskey', stack = false, weight = 10, client = { image = 'whiskey.png' } },
['vodka'] = { label = 'Vodka', stack = false, weight = 10, client = { image = 'vodka.png' } },
['rum'] = { label = 'Rum', stack = false, weight = 10, client = { image = 'rum.png' } },
['brandy'] = { label = 'Brandy', stack = false, weight = 10, client = { image = 'brandy.png' } },
['tequila'] = { label = 'Tequila', stack = false, weight = 10, client = { image = 'tequila.png' } },
['champagne'] = { label = 'Champagne', stack = false, weight = 10, client = { image = 'champagne.png' } },
['red_wine'] = { label = 'Red Wine', stack = false, weight = 10, client = { image = 'red_wine.png' } },
['white_wine'] = { label = 'White Wine', stack = false, weight = 10, client = { image = 'white_wine.png' } },
['rose'] = { label = 'Rose', stack = false, weight = 10, client = { image = 'rose.png' } },
['beer'] = { label = 'Beer', stack = false, weight = 10, client = { image = 'beer.png' } },STEP 4 - Not working?
We hope you won’t need this step, but if you do, feel free to join our Discord and open a support ticket. :)
Last updated