{"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-07-08T07:52:36","modified_gmt":"2025-07-08T05:52:36","slug":"fivem-addiction-script","status":"publish","type":"product","link":"https:\/\/fivemx.com\/pl\/fivem-addiction-script\/","title":{"rendered":"Skrypt uzale\u017cnienia FiveM"},"content":{"rendered":"<div class=\"video-container\"><iframe title=\"FiveM Addiction Script | Addiction System | ak4y-addiction\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/PYo8qFUNGmI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen referrerpolicy=\"strict-origin-when-cross-origin\"><\/iframe><\/div>\n<h3>Config file<\/h3>\n<pre data-no-translation=\"\" 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<div class=\"video-container\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>FiveM system zarz\u0105dzania uzale\u017cnieniami \u2013 Jest \u0142atwy w konfiguracji i niezwykle szybki, wykorzystuj\u0105c JSON dla pr\u0119dko\u015bci. Gracze mog\u0105 uzale\u017cni\u0107 si\u0119 od pewnych przedmiot\u00f3w, co sprawia, \u017ce rozgrywka jest bardziej anga\u017cuj\u0105ca. Je\u015bli nie u\u017cywaj\u0105 tych przedmiot\u00f3w, ich pragnienie ro\u015bnie, a je\u015bli osi\u0105gnie szkodliwy poziom, uruchamia si\u0119 specjalny efekt.<\/p>\n<ul>\n<li><strong>\u0141atwy w konfiguracji<\/strong>: Skonfiguruj go szybko i \u0142atwo dostosuj.<\/li>\n<li><strong>Szybka wydajno\u015b\u0107<\/strong>: U\u017cywa JSON dla szybko\u015bci.<\/li>\n<li><strong>Wci\u0105gaj\u0105ca rozgrywka<\/strong>: Gracze mog\u0105 rozwija\u0107 uzale\u017cnienia od przedmiot\u00f3w.<\/li>\n<li><strong>Efekty dynamiczne<\/strong>: Wysokie poziomy po\u017c\u0105dania wyzwalaj\u0105 specjalne efekty.<\/li>\n<li><strong>Konfigurowalne<\/strong>: Dostosuj ustawienia i przedmioty uzale\u017cnie\u0144 za pomoc\u0105 pliku konfiguracyjnego.<\/li>\n<\/ul>\n<h3>Wsparcie Bazy Danych<\/h3>\n<ul>\n<li><strong>MYSQL z baz\u0105 danych JSON<\/strong>: Kompatybilna i wydajna integracja.<\/li>\n<\/ul>\n<p>Wprowad\u017a nowy poziom realizmu do swojej gry dzi\u0119ki naszemu systemowi zarz\u0105dzania uzale\u017cnieniami!<\/p>","protected":false},"featured_media":152923,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[512,96,3078,511],"product_tag":[],"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-standalone-scripts","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product\/152921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/comments?post=152921"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/media\/152923"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/media?parent=152921"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_brand?post=152921"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_cat?post=152921"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_tag?post=152921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}