shared/config.lua

-- | # For the most quality and unique FiveM resources: https://thug-studios.com
-- | # If you need help, join our Discord server: https://discord.gg/thugstudios

Config = {}

-- | # Basics ------------------------------------------------------------------------------------

Config.Basics = {
    Syrup_Uses = 10, -- | # How many uses per syrup bottle
    Drink_Uses = 3, -- | # How many uses per drink bottle
    Max_Sips = 20, -- | # How many sips per cup
}

-- | # Distances ------------------------------------------------------------------------------------

Config.Distances = {
    Pass = 3.0, -- | # Maximum distance to pass cup to another player (meters)
    Place = 8.0, -- | # Maximum raycast distance for placing cup (meters)
}

-- | # Durations ------------------------------------------------------------------------------------

Config.Durations = {
    Sip = 2500, -- | # How long each sip animation lasts (ms)
    Drink_Pour = 3000, -- | # Time to fully pour the drink while holding E (ms)
    Syrup_Pour = 3000, -- | # Time to fully pour the syrup while holding E (ms)
    Bottle_Enter = 800, -- | # Bottle slide-in animation duration (ms)
    Bottle_Exit = 600, -- | # Bottle slide-out animation duration (ms)
    Effect = 29000, -- | # How long stacks are held after the last sip before decay starts (ms)
    Effect_Per_Sip = 1600, -- | # How often 1 intoxication stack decays once the timer starts (ms)
}

-- | # Overdose ------------------------------------------------------------------------------------
-- | If a player takes more than Max_Sips sips within Time_Window minutes, they die.

Config.Overdose = {
    Enabled = true,
    Max_Sips = 40, -- | # Die after exceeding this many sips within the time window
    Time_Window = 60, -- | # Time window in minutes
}

-- | # Blackout ------------------------------------------------------------------------------------
-- | What happens when a blackout is triggered. Per-sip chance is in effects.lua Sips array.

Config.Blackout = {
    Fall_Duration = 850, -- | # How long each blackout ragdoll pulse lasts (ms)
    Fade_Duration = 390, -- | # Screen fade out duration (ms)
    Knockout_Time = 3200, -- | # How long the player stays blacked out (ms)
    Flash_Count = 6, -- | # How many wake-up flashes happen before the final recovery
    Flash_Visible_Time = 235, -- | # How long each brief blackout flash stays visible (ms)
    Flash_Black_Time = 235, -- | # How long the screen stays dark between flashes (ms)
    Recovery_Duration = 1600, -- | # Gradual recovery time after waking up (ms)
    Recovery_Speed = 0.85, -- | # Movement speed during recovery (1.0 = normal)
    Cooldown = 30000, -- | # Minimum time between blackouts (ms)
}

Last updated