> For the complete documentation index, see [llms.txt](https://corner-scripts.gitbook.io/corner-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://corner-scripts.gitbook.io/corner-scripts-docs/assets-and-guides/advanced-lean-script/configuration.md).

# 🧰Configuration

#### Basic Settings

```lua
-- Item Configuration
Config.LeanCupItem = 'lean_cup' -- Item to trigger the crafting menu
Config.Cooldown = 150 -- Cooldown between lean uses (seconds)
Config.EffectDuration = 300 -- Duration of lean effects (seconds)
Config.HealthLoss = 5 -- Percentage of health lost on use
Config.ArmorGain = 50 -- Armor gained on use
Config.DrinkDuration = 30 -- Duration of drinking animation (seconds)
```

#### Lean Recipes

Configure available lean types and their required items:

```lua
Config.Leans = {
    {
        name = 'akorn_lean',
        label = 'Korn Lean',
        description = 'Most popular',
        requiredItems = {
            { name = 'akorn', count = 1, label = 'Korn Syrup' },
            { name = 'sprunk', count = 1, label = 'Sprunk' }
        },
        cupImage = 'images/cup.png',
        syrupImage = 'images/syrup.png',
        sprunkImage = 'images/sprunk.png'
    },
    -- Additional lean types...
}
```

#### Pouring Settings

```lua
Config.SyrupMaxPercent = 30 -- Max percentage of syrup in the cup
Config.sprunkMaxPercent = 70 -- Max percentage of sprunk in the cup
Config.MaxCupFill = 100 -- Required cup fill percentage to complete
Config.PourAmount = 1 -- Amount added per pour action
```

#### Animations & Props

```lua
Config.UseCupProp = true -- Enable cup prop during crafting/drinking
Config.CupProp = 'prop_fib_coffee' -- Cup prop model
Config.CupBone = 28422 -- Bone ID for attaching prop (right hand)
Config.CupPropPos = { x = 0.00, y = 0.00, z = 0.00 } -- Prop position
Config.CupPropRot = { x = 0.0, y = 0.0, z = 0.0 } -- Prop rotation
Config.NUIHoldScenario = 'WORLD_HUMAN_AA_COFFEE' -- Scenario for holding cup
Config.DrinkAnimDict = 'amb@world_human_drinking@coffee@male@idle_a' -- Drinking animation dictionary
Config.DrinkAnimName = 'idle_a' -- Drinking animation name
```

#### Localization

Customize all text displayed to players:

```lua
Config.Translations = {
    no_cup = "You need a lean cup to do that.",
    craft_success = "Lean crafted and added to inventory.",
    cooldown_message = "You must wait a moment before another lean!",
    -- ... more localization options
}
```
