{"id":152921,"date":"2024-09-02T11:25:40","date_gmt":"2024-09-02T09:25:40","guid":{"rendered":"https:\/\/hifivem.com\/?post_type=product&#038;p=152921"},"modified":"2025-12-24T07:32:03","modified_gmt":"2025-12-24T06:32:03","slug":"scenario-de-dependance-fivem","status":"publish","type":"product","link":"https:\/\/fivemx.com\/fr\/fivem-addiction-script\/","title":{"rendered":"Sc\u00e9nario de d\u00e9pendance \u00e0 FiveM"},"content":{"rendered":"<p><iframe title=\"FiveM Addiction Script | Addiction System | ak4y-addiction\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/PYo8qFUNGmI?feature=oembed\" loading=\"lazy\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h3>Config file<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Config = {\r\n    Framework = \"esx\", -- \"esx\" or \"qb\"\r\n    Identifier = \"discord\", -- Identifier for the database (discord \/ steam \/ license &lt;- recommended | not recommended -&gt; xbl \/ live \/ fivem \/ ip)\r\n    MenuCommand = \"addictions\",\r\n    MenuKey = \"F7\",\r\n    UseMenuKey = true,\r\n    TickTime = 10, -- Seconds (Less than 5 seconds is not recommended!)\r\n    EffectCooldown = 30, -- Seconds\r\n\r\n    Admins = {\r\n        \"discord:397032581326962689\", -- Add your steam hex here\r\n    },\r\n\r\n    Addictions = {\r\n        [\"alcohol\"] = {\r\n            title = \"Alcohol\", -- Title of the addiction\r\n            addictionDangerLimit = 60, -- If the addiction is above this value, danger text will be shown\r\n            needDangerLimit = 50, -- If the need is above this value, danger text will be shown\r\n            effectType = 3, -- 1, 2, 3 (this will be played if players addiction is above the limit)\r\n\r\n            onTick = {\r\n                addiction = 0.2, -- Value will decrease with each tick\r\n                need = 0.3 -- Value will increase with each tick (if addiction is above the limit)\r\n            }\r\n        },\r\n        [\"drug\"] = {\r\n            title = \"Drug\", -- Title of the addiction\r\n            addictionDangerLimit = 30, -- If the addiction is above this value, danger text will be shown\r\n            needDangerLimit = 10, -- If the need is above this value, danger text will be shown\r\n            effectType = 2, -- 1, 2, 3 (this will be played if players addiction is above the limit)\r\n\r\n            onTick = {\r\n                addiction = 0.15, -- Value will decrease with each tick\r\n                need = 0.3 -- Value will increase with each tick (if addiction is above the limit)\r\n            }\r\n        },\r\n        [\"cigar\"] = {\r\n            title = \"Cigar\", -- Title of the addiction\r\n            addictionDangerLimit = 60, -- If the addiction is above this value, danger text will be shown\r\n            needDangerLimit = 15, -- If the need is above this value, danger text will be shown\r\n            effectType = 1, -- 1, 2, 3 (this will be played if players addiction is above the limit)\r\n\r\n            onTick = {\r\n                addiction = 0.1, -- Value will decrease with each tick\r\n                need = 0.6 -- Value will increase with each tick (if addiction is above the limit)\r\n            }\r\n        },\r\n    },\r\n\r\n    AddictionHealingItems = {\r\n        [\"water\"] = {\r\n            title = \"Water\",\r\n            itemName = \"water\", -- Item name in the database\r\n            itemType = \"drink\", -- \"drink\" or \"food\" or \"cigaratte\"\r\n            addictionType = \"alcohol\", -- Addiction name\r\n\r\n            onUse = {\r\n                decreaseAddiction = 10,\r\n                decreaseNeed = 10\r\n            },\r\n        },\r\n    },\r\n\r\n    AddictionItems = {\r\n        [\"beer\"] = {\r\n            title = \"Beer\",\r\n            itemName = \"beer\", -- Item name in the database\r\n            itemType = \"drink\", -- \"drink\" or \"food\" or \"cigaratte\"\r\n            addictionType = \"alcohol\", -- Addiction name\r\n\r\n            onUse = { -- Values \u200b\u200bto be added with each use\r\n                increaseAddiction = 10,\r\n                decreaseNeed = 12\r\n            },\r\n        },\r\n        [\"whiskey\"] = {\r\n            title = \"Whiskey\",\r\n            itemName = \"whiskey\", -- Item name in the database\r\n            itemType = \"drink\", -- \"drink\" or \"food\" or \"cigaratte\"\r\n            addictionType = \"alcohol\", -- Addiction name\r\n\r\n            onUse = { -- Values \u200b\u200bto be added with each use\r\n                increaseAddiction = 10,\r\n                decreaseNeed = 12\r\n            },\r\n        },\r\n        [\"vodka\"] = {\r\n            title = \"Vodka\",\r\n            itemName = \"vodka\", -- Item name in the database\r\n            itemType = \"drink\", -- \"drink\" or \"food\" or \"cigaratte\"\r\n            addictionType = \"alcohol\", -- Addiction name\r\n\r\n            onUse = { -- Values \u200b\u200bto be added with each use\r\n                increaseAddiction = 10,\r\n                decreaseNeed = 12\r\n            },\r\n        },\r\n        [\"cigar\"] = {\r\n            title = \"Cigar\",\r\n            itemName = \"cigar\", -- Item name in the database\r\n            itemType = \"cigaratte\", -- \"drink\" or \"food\" or \"cigaratte\"\r\n            addictionType = \"cigar\", -- Addiction name\r\n\r\n            onUse = { -- Values \u200b\u200bto be added with each use\r\n                increaseAddiction = 10,\r\n                decreaseNeed = 12\r\n            },\r\n        },\r\n        [\"weed\"] = {\r\n            title = \"Weed\",\r\n            itemName = \"weed\", -- Item name in the database\r\n            itemType = \"cigaratte\", -- \"drink\" or \"food\" or \"cigaratte\"\r\n            addictionType = \"drug\", -- Addiction name\r\n\r\n            onUse = { -- Values \u200b\u200bto be added with each use\r\n                increaseAddiction = 10,\r\n                decreaseNeed = 12\r\n            },\r\n        },\r\n        [\"meth\"] = {\r\n            title = \"Meth\",\r\n            itemName = \"meth\", -- Item name in the database\r\n            itemType = \"cigaratte\", -- \"drink\" or \"food\" or \"cigaratte\"\r\n            addictionType = \"drug\", -- Addiction name\r\n\r\n            onUse = { -- Values \u200b\u200bto be added with each use\r\n                increaseAddiction = 10,\r\n                decreaseNeed = 12\r\n            },\r\n        },\r\n    },\r\n\r\n    Notify = function(message, type, length)\r\n        if Config.Framework == \"qb\" then\r\n            Framework.Functions.Notify(message, type, length)\r\n        else\r\n            Framework.ShowNotification(message)\r\n        end\r\n    end,\r\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Syst\u00e8me de gestion des addictions FiveM \u2013 Il est facile \u00e0 configurer et ultra rapide, utilisant JSON pour la vitesse. Les joueurs peuvent devenir accros \u00e0 certains objets, ce qui rend le jeu plus attrayant. S&#039;ils n&#039;utilisent pas ces objets, leur d\u00e9sir grandit, et s&#039;il atteint un niveau nocif, un effet sp\u00e9cial se d\u00e9clenche.<\/p>\n<ul>\n<li><strong>Facile \u00e0 configurer<\/strong>:Installez-le rapidement et personnalisez-le facilement.<\/li>\n<li><strong>Performances rapides<\/strong>:Utilise JSON pour la vitesse.<\/li>\n<li><strong>Un gameplay addictif<\/strong>:Les joueurs peuvent d\u00e9velopper des addictions aux objets.<\/li>\n<li><strong>Effets dynamiques<\/strong>:Des niveaux de d\u00e9sir \u00e9lev\u00e9s d\u00e9clenchent des effets sp\u00e9ciaux.<\/li>\n<li><strong>Personnalisable<\/strong>: Ajustez les param\u00e8tres et les \u00e9l\u00e9ments de d\u00e9pendance via un fichier de configuration.<\/li>\n<\/ul>\n<h3>Prise en charge de la base de donn\u00e9es<\/h3>\n<ul>\n<li><strong>MYSQL avec base de donn\u00e9es JSON<\/strong>:Int\u00e9gration compatible et efficace.<\/li>\n<\/ul>\n<p>Apportez une nouvelle couche de r\u00e9alisme \u00e0 votre jeu avec notre syst\u00e8me de gestion des d\u00e9pendances !<\/p>","protected":false},"featured_media":152923,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[512,96,1895,2907,511],"product_tag":[2690],"class_list":["post-152921","product","type-product","status-publish","has-post-thumbnail","product_cat-qbcore-scripts","product_cat-esx-scripts","product_cat-fivem-medic-scripts","product_cat-qbox-scripts","product_cat-standalone-scripts","product_tag-drug","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product\/152921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/comments?post=152921"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media\/152923"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media?parent=152921"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_brand?post=152921"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_cat?post=152921"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_tag?post=152921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}