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 - Download
Download mst_breathalyzer and mst_bridge from Portal.
STEP 2 - Dependencies
Required:
es_extended or qb-core or qbx_core
Optional:
ox_lib (only required if you want to use the progress bars)
STEP 3 - Resources order
ensure es_extended/qb-core/qbx_core
ensure mst_bridge
ensure mst_breathalyzerSTEP 4 - Database
Without adding these items to the database, the script will not work!
Add the images from the
inventory_imagesfolder insidemst_breathalyzerto your inventory system’s image directory.
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';
DELETE FROM items WHERE name = 'yogurt';
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),
('yogurt', 'Yogurt', 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' },
yogurt = { name = 'yogurt', label = 'Yogurt', weight = 1, type = 'item', image = 'yogurt.png', unique = false, useable = true, shouldClose = true, description = 'Helps reduce alcohol effects' },['breathalyzer'] = {
label = 'Breathalyzer',
weight = 1000,
stack = true,
close = true,
description = 'Check someone\'s blood alcohol level',
client = {
image = 'breathalyzer.png'
}
},
['whiskey'] = {
label = 'Whiskey',
weight = 1000,
stack = true,
close = true,
description = 'A strong drink for a strong person',
client = {
image = 'whiskey.png'
}
},
['vodka'] = {
label = 'Vodka',
weight = 1000,
stack = true,
close = true,
description = 'Clear and powerful spirit',
client = {
image = 'vodka.png'
}
},
['rum'] = {
label = 'Rum',
weight = 1000,
stack = true,
close = true,
description = 'Sweet spirit from sugarcane',
client = {
image = 'rum.png'
}
},
['brandy'] = {
label = 'Brandy',
weight = 1000,
stack = true,
close = true,
description = 'Smooth, aged liquor',
client = {
image = 'brandy.png'
}
},
['tequila'] = {
label = 'Tequila',
weight = 1000,
stack = true,
close = true,
description = 'Mexican spirit made from agave',
client = {
image = 'tequila.png'
}
},
['champagne'] = {
label = 'Champagne',
weight = 1000,
stack = true,
close = true,
description = 'Celebrate with bubbles',
client = {
image = 'champagne.png'
}
},
['red_wine'] = {
label = 'Red Wine',
weight = 1000,
stack = true,
close = true,
description = 'A glass of rich red wine',
client = {
image = 'red_wine.png'
}
},
['white_wine'] = {
label = 'White Wine',
weight = 1000,
stack = true,
close = true,
description = 'A crisp, light wine',
client = {
image = 'white_wine.png'
}
},
['rose'] = {
label = 'Rose',
weight = 1000,
stack = true,
close = true,
description = 'A pink wine for sunny days',
client = {
image = 'rose.png'
}
},
['beer'] = {
label = 'Beer',
weight = 1000,
stack = true,
close = true,
description = 'Cold and refreshing pint',
client = {
image = 'beer.png'
}
},
['yogurt'] = {
label = 'Yogurt',
weight = 1000,
stack = true,
close = true,
description = 'Helps reduce alcohol effects',
client = {
image = 'yogurt.png'
}
},breathalyzer = { label = "Breathalyzer", weight = 1, type = "item", image = "breathalyzer.png", unique = false, useable = true, shouldClose = true, description = "Check someone's blood alcohol level" },
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 = { label = "Vodka", weight = 1, type = "item", image = "vodka.png", unique = false, useable = true, shouldClose = true, description = "Clear and powerful spirit" },
rum = { label = "Rum", weight = 1, type = "item", image = "rum.png", unique = false, useable = true, shouldClose = true, description = "Sweet spirit from sugarcane" },
brandy = { label = "Brandy", weight = 1, type = "item", image = "brandy.png", unique = false, useable = true, shouldClose = true, description = "Smooth, aged liquor" },
tequila = { label = "Tequila", weight = 1, type = "item", image = "tequila.png", unique = false, useable = true, shouldClose = true, description = "Mexican spirit made from agave" },
champagne = { label = "Champagne", weight = 1, type = "item", image = "champagne.png", unique = false, useable = true, shouldClose = true, description = "Celebrate with bubbles" },
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 = { label = "White Wine", weight = 1, type = "item", image = "white_wine.png", unique = false, useable = true, shouldClose = true, description = "A crisp, light wine" },
rose = { label = "Rose", weight = 1, type = "item", image = "rose.png", unique = false, useable = true, shouldClose = true, description = "A pink wine for sunny days" },
beer = { label = "Beer", weight = 1, type = "item", image = "beer.png", unique = false, useable = true, shouldClose = true, description = "Cold and refreshing pint" },
yogurt = { label = "Yogurt", weight = 1, type = "item", image = "yogurt.png", unique = false, useable = true, shouldClose = true, description = "Helps reduce alcohol effects" },STEP 5 - 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