DexLab Scripts
  • ๐ŸงชAbout Us
  • ๐Ÿ’‰Dex Addictions
    • User Guide
      • Features
    • Installation
    • Configuration
    • Common Errors
  • ๐ŸฆDex Banking
    • User Guide
      • Features
    • Configuration
    • Installation
    • Common Errors
  • ๐Ÿ’ŽDex Collectibles
    • User Guide
      • Features
    • Installation
    • Configuration
    • Common Errors
  • ๐Ÿ’ŠDex Drugs
    • User Guide
      • Features
    • Installation
    • Configuration
    • Common Errors
  • ๐ŸชšDex Inventory Craft
    • User Guide
      • Features
    • Installation
    • Configuration
    • Common Errors
  • ๐Ÿ—บ๏ธDex Map Markers
    • User Guide
      • Features
    • Installation
    • Configuration
    • Common Errors
  • ๐Ÿช™Dex Panning
    • User Guide
      • Features
    • Configuration
    • Installation
    • Common Errors
  • โค๏ธโ€๐Ÿ”ฅDex Relationships
    • User Guide
      • Features
    • Configuration
    • Installation
    • Common Errors
Powered by GitBook
On this page
  1. Dex Addictions

Configuration

PreviousInstallationNextCommon Errors

Last updated 19 days ago


The items used are only for testing, you should configure to your liking using your own items!

Config Preview: v1.0

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
    }
}
๐Ÿ’‰