Overdose

Drug toxicity and overdose lifecycle management, medical cures, and diagnostics.

Overdose Triggers

  • Single-drug toxicity triggers after 10 doses within the retention window.
  • Poly-drug toxicity triggers when mixing 5 distinct drug types concurrently.
  • Drug traces remain active in bloodstream for 5 minutes per dose.

Symptoms and Effects

  • Warning notification alerts the player to seek medical recovery.
  • Continuous health drain of 1 HP per second until treated.
  • Overdose event broadcast across client and server.
  • Player death automatically resets blood toxicity and overdose state.

Medical Treatment

Item ID Item Label Type Description
antidote Antidote Usable Syringe Reverses overdose, stops health drain, and clears blood toxicity.

Police and EMS Blood Testing

Item ID Item Label Type Description
drugtestkit Drug Test Kit Usable Tool Performs blood swab showing active substances and remaining retention timers.

Admin Commands

Command Arguments Permission Description
/removeoverdose [player_id] Admin / Console Clears active overdose and resets screen shaders.
/cleardrugs [player_id] Admin / Console Clears all overdoses, addictions, and screen shaders.

Configuration Reference

Configuration options located in configs/usable.lua:

Config.DrugStayInBlood = 5 -- Minutes retention window

Config.OverDoseLimit = {
    same_drug = 10,  -- Maximum doses of the same drug before overdose
    mixed_drug = 5,  -- Maximum different drug types before overdose
}

Config.OverdoseEffect = {
    tick = 1,        -- Health loss interval in seconds
    HealthLose = 1,  -- HP lost per tick
}

Config.TestKit = 'drugtestkit'
Config.RemoveKit = true
Config.DrugTestDelay = 5 -- Test duration in seconds