> For the complete documentation index, see [llms.txt](https://docs.menanak47.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.menanak47.com/multi-framework/ak47_crafting/config.md).

# config

### Pre-configured for qb/qbx

```lua
Config = {}
Config.Locale = 'en'
Config.Debug = false

Config.Locations = {
    {
        tableId = 'location1',
        position = vector4(607.08, -3087.94, 6.02, 360.0),
        size = vector3(2.5, 1.0, 1.5),
        blip = {enable = true, name = 'Crafting', sprite = 643, size = 0.6, color = 35},
    },
    {
        tableId = 'location2',
        position = vector4(607.61, -3092.66, 6.07, 270.0),
        size = vector3(2.5, 1.0, 1.5),
        blip = {enable = true, name = 'Crafting', sprite = 643, size = 0.6, color = 35},
    },
}

-- minigame: 'timingBar', 'sequence', 'rapidClick', 'rhythm', 'lockpicking'
-- difficulty: 'easy', 'medium', 'hard', 'expert'
Config.CraftingTables = {
    ['location1'] = {
        {
            requiredLevel = 0, addXp = 10, loseXp = 3,
            --minigame = 'rhythm', difficulty = 'medium',
            craftTime = 10,
            ingredients = {
                { item = 'metalscrap', name = 'Metal Scrap', quantity = 22, removeChance = 100 },
                { item = 'plastic', name = 'Plastic', quantity = 2, removeChance = 100 },
                { item = 'aluminum', name = 'Aluminum', quantity = 28, removeChance = 100  },
                { item = 'electronickit', name = 'Electronic Kit', quantity = 2, removeChance = 100 },
                { item = 'steel', name = 'Steel', quantity = 40, removeChance = 100 },
            },
            resultItem = { item = 'lockpick', name = 'Lockpick', description = 'Used to unlock things that you should not.', quantity = 1 }
        },
        {
            requiredLevel = 1, addXp = 20, loseXp = 5,
            minigame = 'sequence', difficulty = 'easy',
            craftTime = 10,
            ingredients = {
                { item = 'metalscrap', name = 'Metal Scrap', quantity = 30, removeChance = 100 },
                { item = 'plastic', name = 'Plastic', quantity = 42, removeChance = 100 },
            },
            resultItem = { item = 'screwdriverset', name = 'Screwdriver Set', description = 'A set of screwdrivers for various tasks.', quantity = 1 }
        },
        {
            requiredLevel = 1, addXp = 30, loseXp = 8,
            minigame = 'sequence', difficulty = 'easy',
            craftTime = 10,
            ingredients = {
                { item = 'metalscrap', name = 'Metal Scrap', quantity = 30, removeChance = 100 },
                { item = 'plastic', name = 'Plastic', quantity = 45, removeChance = 100 },
                { item = 'aluminum', name = 'Aluminum', quantity = 28, removeChance = 100 },
            },
            resultItem = { item = 'electronickit', name = 'Electronic Kit', description = 'A kit full of essential electronic components.', quantity = 1 }
        },
        {
            requiredLevel = 1, addXp = 40, loseXp = 10,
            minigame = 'sequence', difficulty = 'medium',
            craftTime = 15,
            ingredients = {
                { item = 'electronickit', name = 'Electronic Kit', quantity = 2, removeChance = 100 },
                { item = 'plastic', name = 'Plastic', quantity = 52, removeChance = 100  },
                { item = 'steel', name = 'Steel', quantity = 40, removeChance = 100  },
            },
            resultItem = { item = 'radioscanner', name = 'Radio Scanner', description = 'Allows you to listen in on radio frequencies.', quantity = 1 }
        },
        {
            requiredLevel = 3, addXp = 50, loseXp = 15,
            minigame = 'lockpicking', difficulty = 'hard',
            craftTime = 15,
            ingredients = {
                { item = 'metalscrap', name = 'Metal Scrap', quantity = 10, removeChance = 100 },
                { item = 'plastic', name = 'Plastic', quantity = 50, removeChance = 100 },
                { item = 'aluminum', name = 'Aluminum', quantity = 30, removeChance = 100 },
                { item = 'iron', name = 'Iron', quantity = 17, removeChance = 100 },
                { item = 'electronickit', name = 'Electronic Kit', quantity = 2, removeChance = 100 },
            },
            resultItem = { item = 'gatecrack', name = 'Gate Crack', description = 'A device to bypass electronic gate locks.', quantity = 1 }
        },
        {
            requiredLevel = 4, addXp = 60, loseXp = 20,
            minigame = 'rapidClick', difficulty = 'medium',
            craftTime = 15,
            ingredients = {
                { item = 'metalscrap', name = 'Metal Scrap', quantity = 36, removeChance = 100 },
                { item = 'steel', name = 'Steel', quantity = 24, removeChance = 100 },
                { item = 'aluminum', name = 'Aluminum', quantity = 28, removeChance = 100 },
            },
            resultItem = { item = 'handcuffs', name = 'Handcuffs', description = 'For restraining individuals. The key is optional.', quantity = 1 }
        },
        {
            requiredLevel = 5, addXp = 70, loseXp = 25,
            minigame = 'sequence', difficulty = 'medium',
            craftTime = 20,
            ingredients = {
                { item = 'metalscrap', name = 'Metal Scrap', quantity = 32, removeChance = 100 },
                { item = 'steel', name = 'Steel', quantity = 43, removeChance = 100 },
                { item = 'plastic', name = 'Plastic', quantity = 61, removeChance = 100 },
            },
            resultItem = { item = 'repairkit', name = 'Repair Kit', description = 'A kit for basic repairs on vehicles and other items.', quantity = 1 }
        },
        {
            requiredLevel = 6, addXp = 80, loseXp = 30,
            minigame = 'rapidClick', difficulty = 'hard',
            craftTime = 20,
            ingredients = {
                { item = 'metalscrap', name = 'Metal Scrap', quantity = 50, removeChance = 100 },
                { item = 'steel', name = 'Steel', quantity = 37, removeChance = 100 },
                { item = 'copper', name = 'Copper', quantity = 26, removeChance = 100 },
            },
            resultItem = { item = 'pistol_ammo', name = 'Pistol Ammo', description = 'Standard ammunition for most handguns.', quantity = 1 }
        },
        {
            requiredLevel = 7, addXp = 90, loseXp = 30,
            minigame = 'sequence', difficulty = 'easy',
            craftTime = 20,
            ingredients = {
                { item = 'iron', name = 'Iron', quantity = 60, removeChance = 100 },
                { item = 'glass', name = 'Glass', quantity = 30, removeChance = 100 },
            },
            resultItem = { item = 'ironoxide', name = 'Iron Oxide', description = 'A chemical compound, useful in certain reactions.', quantity = 1 }
        },
        {
            requiredLevel = 7, addXp = 100, loseXp = 30,
            minigame = 'sequence', difficulty = 'easy',
            craftTime = 20,
            ingredients = {
                { item = 'aluminum', name = 'Aluminum', quantity = 60, removeChance = 100 },
                { item = 'glass', name = 'Glass', quantity = 30, removeChance = 100 },
            },
            resultItem = { item = 'aluminumoxide', name = 'Aluminum Oxide', description = 'A chemical compound, often used as an abrasive.', quantity = 1 }
        },
        {
            requiredLevel = 8, addXp = 110, loseXp = 30,
            minigame = 'sequence', difficulty = 'hard',
            craftTime = 25,
            ingredients = {
                { item = 'iron', name = 'Iron', quantity = 33, removeChance = 100 },
                { item = 'steel', name = 'Steel', quantity = 44, removeChance = 100 },
                { item = 'plastic', name = 'Plastic', quantity = 55, removeChance = 100 },
                { item = 'aluminum', name = 'Aluminum', quantity = 22, removeChance = 100 },
            },
            resultItem = { item = 'armor', name = 'Armor', description = 'Provides a basic layer of protection against damage.', quantity = 1 }
        },
        {
            requiredLevel = 36, addXp = 120, loseXp = 30,
            minigame = 'sequence', difficulty = 'hard',
            craftTime = 25,
            ingredients = {
                { item = 'iron', name = 'Iron', quantity = 50, removeChance = 100 },
                { item = 'steel', name = 'Steel', quantity = 50, removeChance = 100 },
                { item = 'screwdriverset', name = 'Screwdriver Set', quantity = 3, removeChance = 100 },
                { item = 'advancedlockpick', name = 'Advanced Lockpick', quantity = 2, removeChance = 100 },
            },
            resultItem = { item = 'drill', name = 'Drill', description = 'A heavy-duty drill for breaching tough surfaces.', quantity = 1 }
        },
    },

    ['location2'] = {
        -- Attachment Bench Recipes
        {
            requiredLevel = 1, addXp = 100, loseXp = 30,
            minigame = 'sequence', difficulty = 'hard',
            craftTime = 25,
            ingredients = {
                { item = 'metalscrap', name = 'Metal Scrap', quantity = 140, removeChance = 100 },
                { item = 'steel', name = 'Steel', quantity = 250, removeChance = 100 },
                { item = 'rubber', name = 'Rubber', quantity = 60, removeChance = 100 },
            },
            resultItem = { item = 'clip_attachment', name = 'Clip Attachment', description = 'Increases the ammunition capacity of a weapon.', quantity = 1 }
        },
        {
            requiredLevel = 1, addXp = 100, loseXp = 30,
            minigame = 'sequence', difficulty = 'hard',
            craftTime = 25,
            ingredients = {
                { item = 'metalscrap', name = 'Metal Scrap', quantity = 165, removeChance = 100 },
                { item = 'steel', name = 'Steel', quantity = 285, removeChance = 100 },
                { item = 'rubber', name = 'Rubber', quantity = 75, removeChance = 100 },
            },
            resultItem = { item = 'suppressor_attachment', name = 'Suppressor Attachment', description = 'Reduces the sound and muzzle flash of a weapon.', quantity = 1 }
        },
        {
            requiredLevel = 1, addXp = 100, loseXp = 30,
            minigame = 'sequence', difficulty = 'hard',
            craftTime = 25,
            ingredients = {
                { item = 'metalscrap', name = 'Metal Scrap', quantity = 230, removeChance = 100 },
                { item = 'steel', name = 'Steel', quantity = 365, removeChance = 100 },
                { item = 'rubber', name = 'Rubber', quantity = 130, removeChance = 100 },
            },
            resultItem = { item = 'drum_attachment', name = 'Drum Attachment', description = 'A high-capacity drum magazine for a weapon.', quantity = 1 }
        },
        {
            requiredLevel = 1, addXp = 100, loseXp = 30,
            minigame = 'sequence', difficulty = 'hard',
            craftTime = 25,
            ingredients = {
                { item = 'metalscrap', name = 'Metal Scrap', quantity = 255, removeChance = 100 },
                { item = 'steel', name = 'Steel', quantity = 390, removeChance = 100 },
                { item = 'rubber', name = 'Rubber', quantity = 145, removeChance = 100 },
            },
            resultItem = { item = 'smallscope_attachment', name = 'Small Scope Attachment', description = 'A small scope for improved accuracy at range.', quantity = 1 }
        },
    }
}

Config.MiniGameSetting = {
    timingBar = {
        easy    = {speed = 1,   size = 30, time = 8000}, 
        medium  = {speed = 1.5, size = 20, time = 7000}, 
        hard    = {speed = 2,   size = 15, time = 6000}, 
        expert  = {speed = 3,   size = 10, time = 5000}
    },

    sequence = {
        easy    = {len = 3, time = 700, playerTime = 5000}, 
        medium  = {len = 4, time = 600, playerTime = 6000}, 
        hard    = {len = 5, time = 500, playerTime = 7000}, 
        expert  = {len = 7, time = 400, playerTime = 8000}
    },

    rapidClick = {
        easy    = {time = 5, target = 20}, 
        medium  = {time = 4, target = 25}, 
        hard    = {time = 3, target = 30}, 
        expert  = {time = 3, target = 40}
    },

    rhythm = {
        easy    = {speed = 3, tries = 5, size = 20, time = 15000}, 
        medium  = {speed = 4, tries = 4, size = 15, time = 12000}, 
        hard    = {speed = 5, tries = 3, size = 10, time = 10000}, 
        expert  = {speed = 7, tries = 3, size = 8,  time = 8000}
    },

    lockpicking = {
        easy    = {size = 30, time = 20}, 
        medium  = {size = 20, time = 15}, 
        hard    = {size = 15, time = 12}, 
        expert  = {size = 10, time = 10}
    },
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.menanak47.com/multi-framework/ak47_crafting/config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
