[ESX/QB/OX] Addiction - Dynamic addiction system

About script

The script will allow you to induce an addiction that forces the player to either take the drug again or enter treatment.
Also the script will allow you to add unlimited subject for addiction and even medication.

The script supports adding an infinite amount of drugs and addictions.

The script is created as a dynamic system so it assumes you have some items to drug or addict on the server.

The script also contains a stage for which the effects it causes can be set and the effects can be combined.

Just set them in the config afterwards.

Addiction stages

Each addiction can have multiple stasis and each can do multiple effects or combine them.

Preview

Dependencies

Useful exports

exports.pls_addiction:openMenu() -- Open addiction menu 
exports.pls_addiction:addAddiction(addictionName, value) -- Add addiction
exports.pls_addiction:removeAddiction(addictionName, value) -- Remove addiction
exports.pls_addiction:resetAddiction() -- Reset all addictions

Store

Escrow version here

Source version here

Other resources

In game vehicle shop creator
Moonshine distillery
Mower job
Keycards - Heists DayZ / Tarkov Inspired
Weed growing
Job calls - Order delivery
Advent calendar
Danger delivery - Ilegal shipment heist for multiple players
Scrapyard - Scrap NPC vehicles

or for more check my store.

Code is accessible No
Subscription-based No
Lines (approximately) 600+
Requirements ox_lib, oxmysql
Support Yes
1 Like

sounds like it came from my mind tho

1 Like

Sounds like we develop same server Lol xD

1 Like

i do, you only make your thing haha <3

1 Like

Hi! Would that work alongside other drugs system that would provide effects?

Hello,
yes just u can use exports or setup items in config.
It’s meant to be theoretically standalone and you can set everything up to suit your needs.

1 Like

Update - Usable items with effects

Usable Items now support other effects after use, including increased lives, vests or stamina.

effects = {
                -- SETINGS
                time = 6000, -- ms 1000*1 = 1s
                removeStaminabuffsAfterTime = true, 
                -- STATUS BUFFs
                hpbuff_10 = false,
                hpbuff_20 = false,
                hpbuff_30 = false,
                hpbuff_50 = false,
                hpbuff_100 = false,
                armorbuff_10 = true,
                armorbuff_20 = false,
                armorbuff_30 = false,
                armorbuff_50 = false,
                armorbuff_100 = false,
                staminabuff_small = false,
                staminabuff_big = false,

                -- VISUAL EFFECTS
                drunk = true,
                screenblur = false,
                grayfilter = false,
                cameraflash = false,
                drugsin = false,
},