Config file
Config = { Framework = "esx", -- "esx" or "qb" Identifier = "discord", -- Identifier for the database (discord / steam / license <- recommended | not recommended -> xbl / live / fivem / ip) MenuCommand = "addictions", MenuKey = "F7", UseMenuKey = true, TickTime = 10, -- Seconds (Less than 5 seconds is not recommended!) EffectCooldown = 30, -- Seconds Admins = { "discord:397032581326962689", -- Add your steam hex here }, Addictions = { ["alcohol"] = { title = "Alcohol", -- Title of the addiction addictionDangerLimit = 60, -- If the addiction is above this value, danger text will be shown needDangerLimit = 50, -- If the need is above this value, danger text will be shown effectType = 3, -- 1, 2, 3 (this will be played if players addiction is above the limit) onTick = { addiction = 0.2, -- Value will decrease with each tick need = 0.3 -- Value will increase with each tick (if addiction is above the limit) } }, ["drug"] = { title = "Drug", -- Title of the addiction addictionDangerLimit = 30, -- If the addiction is above this value, danger text will be shown needDangerLimit = 10, -- If the need is above this value, danger text will be shown effectType = 2, -- 1, 2, 3 (this will be played if players addiction is above the limit) onTick = { addiction = 0.15, -- Value will decrease with each tick need = 0.3 -- Value will increase with each tick (if addiction is above the limit) } }, ["cigar"] = { title = "Cigar", -- Title of the addiction addictionDangerLimit = 60, -- If the addiction is above this value, danger text will be shown needDangerLimit = 15, -- If the need is above this value, danger text will be shown effectType = 1, -- 1, 2, 3 (this will be played if players addiction is above the limit) onTick = { addiction = 0.1, -- Value will decrease with each tick need = 0.6 -- Value will increase with each tick (if addiction is above the limit) } }, }, AddictionHealingItems = { ["water"] = { title = "Water", itemName = "water", -- Item name in the database itemType = "drink", -- "drink" or "food" or "cigaratte" addictionType = "alcohol", -- Addiction name onUse = { decreaseAddiction = 10, decreaseNeed = 10 }, }, }, AddictionItems = { ["beer"] = { title = "Beer", itemName = "beer", -- Item name in the database itemType = "drink", -- "drink" or "food" or "cigaratte" addictionType = "alcohol", -- Addiction name onUse = { -- Values to be added with each use increaseAddiction = 10, decreaseNeed = 12 }, }, ["whiskey"] = { title = "Whiskey", itemName = "whiskey", -- Item name in the database itemType = "drink", -- "drink" or "food" or "cigaratte" addictionType = "alcohol", -- Addiction name onUse = { -- Values to be added with each use increaseAddiction = 10, decreaseNeed = 12 }, }, ["vodka"] = { title = "Vodka", itemName = "vodka", -- Item name in the database itemType = "drink", -- "drink" or "food" or "cigaratte" addictionType = "alcohol", -- Addiction name onUse = { -- Values to be added with each use increaseAddiction = 10, decreaseNeed = 12 }, }, ["cigar"] = { title = "Cigar", itemName = "cigar", -- Item name in the database itemType = "cigaratte", -- "drink" or "food" or "cigaratte" addictionType = "cigar", -- Addiction name onUse = { -- Values to be added with each use increaseAddiction = 10, decreaseNeed = 12 }, }, ["weed"] = { title = "Weed", itemName = "weed", -- Item name in the database itemType = "cigaratte", -- "drink" or "food" or "cigaratte" addictionType = "drug", -- Addiction name onUse = { -- Values to be added with each use increaseAddiction = 10, decreaseNeed = 12 }, }, ["meth"] = { title = "Meth", itemName = "meth", -- Item name in the database itemType = "cigaratte", -- "drink" or "food" or "cigaratte" addictionType = "drug", -- Addiction name onUse = { -- Values to be added with each use increaseAddiction = 10, decreaseNeed = 12 }, }, }, Notify = function(message, type, length) if Config.Framework == "qb" then Framework.Functions.Notify(message, type, length) else Framework.ShowNotification(message) end end, }
Reviews
There are no reviews yet.