Config
```lua
Config = {}
Config.ESXName = 'es_extended'
Config.lowerpermilletime = 1 -- (this is in hours), this is the time it takes to lower a players permille (works offline aswell).
Config.lowerpermille = 0.15 -- How much the permille should decrease when it lowers ^^
Config.BreathAlyzerName = 'breathalyzer' -- the name for your breathalyzer item
Config.UseCommand = true
Config.Command = "breathalyzer" -- (you have to have the item and if Config.UseCommand is true)
Config.Language = "en"
Config.Notify = "esx" -- esx, okoknotify, quasar
Config.UseProgressbar = true -- if you wanna use a progressbar to show how long it takes to consume the alcohol.
Config.Progressbar = 'progressbar' -- your progressbar export (skip this if Config.UseProgressbar = false) you can modify this in the cl_main.lua file.
Config.Jobs = {
use = true,
"police",
"ambulance",
}
Config.Alcohol = {
items = {
{
hash = "vodka",
maxpermille = 1.0,
minpermille = 0.5,
time = 120000,
animation = 'WORLD_HUMAN_PARTYING',
},
{
hash = "beer",
maxpermille = 0.1,
minpermille = 0.05,
time = 20000, -- this is how long it takes to consume the alcohol
animation = 'WORLD_HUMAN_PARTYING',
},
{
hash = "pina_colada",
maxpermille = 0.12,
minpermille = 0.07,
time = 25000, -- this is how long it takes to consume the alcohol
animation = 'WORLD_HUMAN_PARTYING',
},
{
hash = "mojito",
maxpermille = 0.12,
minpermille = 0.07,
time = 25000, -- this is how long it takes to consume the alcohol
animation = 'WORLD_HUMAN_PARTYING',
},
{
hash = "mai_tai",
maxpermille = 0.12,
minpermille = 0.07,
time = 25000, -- this is how long it takes to consume the alcohol
animation = 'WORLD_HUMAN_PARTYING',
},
{
hash = "caipirinha",
maxpermille = 0.12,
minpermille = 0.07,
time = 25000, -- this is how long it takes to consume the alcohol
animation = 'WORLD_HUMAN_PARTYING',
},
{
hash = "san_francisco",
maxpermille = 0.12,
minpermille = 0.07,
time = 25000, -- this is how long it takes to consume the alcohol
animation = 'WORLD_HUMAN_PARTYING',
},
{
hash = "blue_lagoon",
maxpermille = 0.12,
minpermille = 0.07,
time = 25000, -- this is how long it takes to consume the alcohol
animation = 'WORLD_HUMAN_PARTYING',
},
{
hash = "whiskey",
maxpermille = 1.0,
minpermille = 0.5,
time = 120000, -- this is how long it takes to consume the alcohol
animation = 'WORLD_HUMAN_PARTYING',
},
{
hash = "wine",
maxpermille = 0.6,
minpermille = 0.2,
time = 120000, -- this is how long it takes to consume the alcohol
animation = 'WORLD_HUMAN_PARTYING',
},
},
}
Config.Permille = {
deathchance = {1, 50},
damageamount = 5,
warnings = {
[1] = {
permille = 0.2,
notify = "You're feeling warm",
drunkeffect = false,
damage = false,
death = false,
},
[2] = {
permille = 0.5,
notify = "You're feeling excited",
drunkeffect = false,
damage = false,
death = false,
},
[3] = {
permille = 0.8,
notify = "You're starting to talk louder",
drunkeffect = true,
damage = false,
death = false,
},
[4] = {
permille = 1.0,
notify = "You are starting to speak slurry and are having troubles walking properly",
drunkeffect = true,
damage = true,
death = false,
},
[5] = {
permille = 2.0,
drunkeffect = true,
notify = "You're very drunk...",
damage = true,
death = true,
},
},
}
```
Last updated