Config = {}

Config.Debug = true -- Set to false in production
Config.UseOxProgressBar = true -- Set to false to use QB progressbar
Config.UseOxNotification = true -- Set to false to use QB notifications

Config.Notifications = {
    ItemUsed = {
        title = "Item Used",
        description = "You used %s",
        type = "success",
        duration = 3000
    },
    ItemRemoved = {
        title = "Item Removed",
        description = "Removed 1x %s",
        type = "inform",
        duration = 3000
    },
    CantUse = {
        title = "Can't Use",
        description = "You can't use this item right now",
        type = "error",
        duration = 3000
    },
    NoItem = {
        title = "Missing Item",
        description = "You don't have this item",
        type = "error",
        duration = 3000
    }
}

Config.Consumables = {
    ['paradiseburger'] = {
        label = 'Burgerr',
        type = 'food',
        notify = {
            title = "Yummy",
            description = "You enjoyed %s",
            type = "success",
            duration = 2500
        },
        progress = {
            duration = 5000,
            label = 'Eating Burgerr...',
            useWhileDead = false,
            canCancel = true,
            disable = {
                move = false,
                car = true,
                combat = true,
            },
            anim = {
                dict = 'mp_player_inteat@burger',
                clip = 'mp_player_int_eat_burger',
                flag = 49,
            },
            prop = {
                model = `prop_sandwich_01`,
                pos = vec3(0.0, 0.0, 0.0),
                rot = vec3(0.0, 0.0, 0.0),
                bone = 18905,
            },
        },
        effects = {
            hunger = 35,
            stress = -10,
            heal = 5,
        },
        removeOnUse = true,
    },
    ['paradisewater'] = {
        label = 'Water Bottle',
        type = 'drink',
        notify = {
            title = "Refreshed",
            description = "You drank %s",
            type = "success",
            duration = 2500
        },
        progress = {
            duration = 3000,
            label = 'Drinking water...',
            useWhileDead = false,
            canCancel = true,
            disable = {
                move = false,
                car = true,
                combat = true,
            },
            anim = {
                dict = 'mp_player_intdrink',
                clip = 'loop_bottle',
                flag = 49,
            },
            prop = {
                model = `prop_ld_flow_bottle`,
                pos = vec3(0.0, 0.0, 0.0),
                rot = vec3(0.0, 0.0, 0.0),
                bone = 18905,
            },
        },
        effects = {
            thirst = 35,
            stress = -5,
        },
        removeOnUse = true,
    },
    ['energydrink'] = {
        label = 'Energy Drink',
        type = 'drink',
        removeOnUse = true,
        notify = {
            title = "Zing!",
            description = "You chugged %s",
            type = "inform",
            duration = 2500
        },
        progress = {
            duration = 3000,
            label = 'Drinking energy drink...',
            useWhileDead = false,
            canCancel = true,
            disable = {
                move = false,
                car = true,
                combat = true,
            },
            anim = {
                dict = 'mp_player_intdrink',
                clip = 'loop_bottle',
                flag = 49,
            },
            prop = {
                model = `prop_ld_can_01`,
                pos = vec3(0.0, 0.0, 0.0),
                rot = vec3(0.0, 0.0, 0.0),
                bone = 18905,
            },
        },
        effects = {
            thirst = 25,
            stress = -10,
        },
        stats = {
            screen = "weed",     -- Screen effect to be played
            effect = "armor",     -- Status effect: "heal" or "stamina"
            time = 30000,           -- Effect duration in ms
            amount = 2,             -- Amount to increase per second
        },
    },
    ['paradisebeer'] = {
        label = 'Beer',
        type = 'alcohol',  -- New alcohol type
        removeOnUse = true,
        notify = {
            title = "Cheers",
            description = "You drank %s",
            type = "success",
            duration = 2500
        },
        progress = {
            duration = 3000,
            label = 'Drinking beer...',
            useWhileDead = false,
            canCancel = true,
            disable = {
                move = false,
                car = true,
                combat = true,
            },
            anim = {
                dict = 'mp_player_intdrink',
                clip = 'loop_bottle',
                flag = 49,
            },
            prop = {
                model = `prop_beer_bottle`,
                pos = vec3(0.0, 0.0, 0.0),
                rot = vec3(0.0, 0.0, 0.0),
                bone = 18905,
            },
        },
        effects = {
            thirst = 20,
            stress = -15,
        },
        stats = {
            screen = "drunk",     -- Drunk screen effect
            amount = 20,          -- Amount to increase drunk level
            time = 30000,         -- Effect duration
            effect = "stamina",   
        },
    },
    ['cigarettebox'] = {
        label = 'Cigarette Box',
        type = 'box',
        removeOnUse = true,
        notify = {
            title = "Unboxed",
            description = "You opened %s",
            type = "inform",
            duration = 2500
        },
        progress = {
            duration = 2000,
            label = 'Opening cigarette box...',
            useWhileDead = false,
            canCancel = true,
            disable = {
                move = false,
                car = true,
                combat = true,
            },
            anim = {
                dict = 'mp_arresting',
                clip = 'a_uncuff',
                flag = 49,
            },
        },
        gives = {
            item = 'cigarette',
            amount = 20
        }
    },
    ['cigarette'] = {
        label = 'Cigarette',
        type = 'smoke',
        removeOnUse = true,
        notify = {
            title = "Smoke Break",
            description = "You smoked a %s",
            type = "inform",
            duration = 2500
        },
        progress = {
            duration = 8000,
            label = 'Smoking...',
            useWhileDead = false,
            canCancel = true,
            disable = {
                move = false,
                car = true,
                combat = true,
            },
            anim = {
                dict = 'amb@world_human_aa_smoke@male@idle_a',
                clip = 'idle_c',
                flag = 49,
            },
            prop = {
                model = `prop_cs_ciggy_01`,
                pos = vec3(0.0, 0.0, 0.0),
                rot = vec3(0.0, 0.0, 0.0),
                bone = 64097,
            },
        },
        effects = {
            stress = -15,
        },
        stats = {
            screen = "weed",
            time = 15000,
            amount = 1,
        },
    },
}
