Page cover

😴Sleeping Tablets

If enabled in sleepingTablets.lua pharmacy's can create sleeping tablets for players to consume

Tablets are fully configurable and will start small screen effects once consumed before putting the player to sleep and allowing them to wake up by pressing a button on their keyboard after the time is up

--sleeping tablets
Config.SleepingTablets = {
    Enabled = true, -- enable sleeping tablets
    ItemName = 'sleepingtablets', -- item name
    Duration = 1, -- time in minutes asleep (dont set this too high they have to wait the entire duration before being able to wake up)
    WakeKey = 38, -- (E) key to wake up
    DisableInVehicle = false, -- set to true to disable the use of sleeping tablets in a vehicle
    Effects = {
        DrowsyTime = 5, -- time in seconds for drowsy effect before falling asleep
        FadeOut = 2500, -- time in MS for screen to fade out when fallen asleep
        FadeIn  = 2500, -- time in MS for screen to fade in when waken up
        Timecycle = 'drug_flying_base', -- timecycle effect name
        -- effects available below
        -- "MP_corona_switch"
        -- "drug_flying_base"
        -- "DRUG_gas_huffin"
        -- "spectator5"
        TimecycleStrength = 0.85, -- time cycle intensity
        ScreenEffect = 'DrugsDrivingOut', -- screen effect name
        -- effects available below
        -- "DrugsMichaelAliensFight"
        -- "DrugsDrivingIn"
        -- "DrugsDrivingOut"
        CamShake = { -- camera shake for being drowsy
            enabled = true, -- enable cam shake
            type = 'DRUNK_SHAKE', -- shake type name
            intensity = 0.8, -- shake intensity
        },
    },
    SleepAnim = { -- sleeping animation
        Dict = 'timetable@tracy@sleep@', -- anim name
        Clip = 'idle_c', -- anim dict
        Flag = 1 -- anim flag
    },
}

Last updated