# Configuration

<figure><img src="https://3628839866-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzeH5m2NcpM6wdeyLkzje%2Fuploads%2FoAfnHqgi4i7N1xMXL7R6%2Faddictions.png?alt=media&#x26;token=99c0f2e0-3553-4f11-aa2a-a16d93b01c42" alt="" width="563"><figcaption></figcaption></figure>

***

{% hint style="danger" %}
The items used are only for testing, you should configure to your liking using your own items!
{% endhint %}

## Config Preview: v1.0

```lua
Config = {}

Config.WebhookURL = ""

Config.WithdrawalCheckInterval = 2 -- Time that the script will check if player has consumed item while in withdrawl

-- EMOJIS FOR THE MENU
Config.Emojis = {
    caffeine = "☕",
    nicotine = "🚬",
    opium = "🌿",
    alcohol = "🍺",
}

-- LOCALES 
Config.MenuTitle = "Your Addictions"
Config.GotAddicted = "You got addicted to "
Config.Withdrawl = "You're on withdrawl for "
Config.WithdrawlColapse = "You're on colapse for "
Config.Detoxed = "You got detoxed!"

Config.Vices = {
    caffeine = {
        maxPoints = 50, -- Max points to get addicted to substance
        withdrawalTime = 40,-- Time that player has to consume the substance again (in minutes)
        withdrawalWarnings = 3,-- How many warning does player get before starting to get damage
        withdrawalDamage = 50 -- How much damage per cicle will the player get
    },
    nicotine = {
        maxPoints = 15,
        withdrawalTime = 30,
        withdrawalWarnings = 3,
        withdrawalDamage = 70
    },
    alcohol = {
        maxPoints = 35,
        withdrawalTime = 20,
        withdrawalWarnings = 2,
        withdrawalDamage = 100
    },
    opium = {
        maxPoints = 5,
        withdrawalTime = 15,
        withdrawalWarnings = 1,
        withdrawalDamage = 150
    },
}

Config.Items = {
    ["consumable_coffee"] = { -- Item that can cause addiction
        type = "caffeine", -- Type of addiction
        addictionPoints = 1, -- How much points does it add when a player consumes it
    },
    ["consumable_chocolate"] = {
        type = "opium",
        addictionPoints = 1, 
    },
    ["tobacco"] = { 
        type = "nicotine", 
        addictionPoints = 1,
    },
    ["beer"] = {
        type = "alcohol", 
        addictionPoints = 1, 
    },
}

Config.Medicines = {
    ["caffeine_medicine"] = { -- Name of the item that can give the addiction
        targetType = "caffeine" -- Type of addiction that removes
    },
    ["opium_medicine"] = { 
        targetType = "opium" 
    },
    ["nicotine_medicine"] = { 
        targetType = "nicotine" 
    },
    ["alcohol_medicine"] = { 
        targetType = "alcohol" 
    },
    ["all_medicine"] = { 
        all = true -- Make it remove all of the addictions
    }
}

```
