# Crafting Menu UI

## Video&#x20;

{% embed url="<https://youtu.be/6gVKVpCRKLQ>" %}

## Example

```lua
RegisterCommand("crafting",function()
    local data = {
        header = "Title",
        tipText = "Footer",
        mainDescription = "Main Description", -- if you set this value, you can't use ingredients
        Ingredients = true, -- if you set mainDescription you cant work with ingredients
        ShowRpgPlayer = true,
        showLongDescription = false,
        craftItems = {
            {
                enabled = true,
                overpower = false,
                texture = "reinforced_survivalist_bandolier",
                textureDictionary = "inventory_items",
                count = nil,
                text = "First Item",
                health = 3,                               -- [-10 - 11]
                healthDurationCategory = nil,             -- [0 - 3]
                stamina = nil,                            -- [-8 - 8  12 = overpowered]
                staminaDurationCategory = nil,            -- [0 - 3]
                deadeye = nil,                            -- [-10 - 11]
                deadeyeDurationCategory = nil,            -- [0 - 3]
                healthCore = 7,                           -- [-8 - 8  12 = overpowered]
                healthCoreDurationCategory = nil,         -- [0 - 3]
                staminaCore = 8,                          -- [-10 - 11]
                staminaCoreDurationCategory = nil,        -- [0 - 3]
                deadeyeCore = nil,                        -- [-8 - 8  12 = overpowered]
                deadeyeCoreDurationCategory = nil,        -- [0 - 3]
                staminaHorse = nil,                       -- [-10 - 11]
                staminaHorseDurationCategory = nil,       -- [0 - 3]
                healthHorse = nil,                        -- [-8 - 8  12 = overpowered]
                healthHorseDurationCategory = nil,        -- [0 - 3]
                staminaCoreHorse = nil,                   -- [-10 - 11]
                staminaCoreHorseDurationCategory = nil,   -- [0 - 3]
                healthCoreHorse = nil,                    -- [-8 - 8  12 = overpowered]
                healthCoreHorseDurationCategory = nil,    -- [0 - 3]
                recipe = {                                -- [max 3 item]
                    {
                        itemname = "First Item First Recipe Item",
                        visible = true,
                        texture = "awards_set_r_003",
                        textureDictionary = "toast_awards_set_r",
                        count = 1,
                        enabled = true,
                        inUse = true,
                    },
                    {
                        itemname = "First Item Second Recipe Item",
                        visible = true,
                        texture = "awards_set_r_002",
                        textureDictionary = "toast_awards_set_r",
                        count = 2,
                        enabled = true,
                        inUse = true,
                    },
                    {
                        itemname = "First Item Third Recipe Item",
                        visible = true,
                        texture = "awards_set_r_004",
                        textureDictionary = "toast_awards_set_r",
                        count = 3,
                        enabled = true,
                        inUse = true,
                    },
                },
                callbackfunction = function(text)
                    print(text.." callback")
                end
            },
        }
    }
    exports["qadr_ui"]:craftingMenuCreator(data)
end)
```


---

# Agent Instructions: 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:

```
GET https://abdulkadir-aktas.gitbook.io/qadr_docs/qadr_ui/crafting-menu-ui.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
