# fxCrafting

## **Config File**

```lua
Config = {
    UseTarget = GetConvar('UseTarget', 'false') == 'true', -- Use qb-target interactions (don't change this, go to your server.cfg and add `setr UseTarget true` to use this and just that from true to false or the other way around)
    useFxTextUI = true, -- Whether or not to use our free script fxTextUI (Otherwise will use default qb) 
    useFxNotify = true, -- Whether or not to use our free script fxNotify (Otherwise will use default qb)
    inventoryIMGPath = 'qb-inventory/html/images/',
    Workbenches = {
        Default = {
            showBlip = true,
            needJob = nil, -- Leave nil if no job is required
            jobRank = 0,
            zoneOptions = { -- Used for when UseTarget is false
                length = 3.0,
                width = 3.0,
                debugPoly = false
            },
            blipData = {
                sprite = 402,
                display = 4,
                scale = 0.9,
                colour = 2,
                title = 'Default Workbench'
            },
            prop = 'prop_tool_bench02',
            coordinates = vector4(265.3162, 2590.8999, 44.1641, 190.6606),
            Categories = { -- You can add as much categories and items as you want, just follow the examples below
                ['Utilities'] = {
                    ['Armor'] = {
                        timeToCraft = 15,
                        item_name = 'armor',
                        materials = {
                            { item = 'rubber', amount = 2, removeItem = false, removeChance = 100 }, -- 100% chance to remove
                            { item = 'plastic', amount = 1, removeItem = false, removeChance = 50 }, -- 50% chance to remove
                        },
                        outputAmount = 1
                    },
                    ['Bandage'] = {
                        timeToCraft = 5,
                        item_name = 'bandage',
                        materials = {
                            { item = 'rubber', amount = 2, removeItem = true, removeChance = 100 }
                        },
                        outputAmount = 1
                    },
                },
                ['Drugs'] = {
                    ['Coke Brick'] = {
                        timeToCraft = 10,
                        item_name = 'coke_brick',
                        materials = {
                            { item = 'cocaine_baggy', amount = 5, removeItem = true, removeChance = 100 },
                            { item = 'aluminumoxide', amount = 1, removeItem = false } -- Won't be removed
                        },
                        outputAmount = 1
                    },
                },
            }
        }
    }
}
```


---

# 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://fxscripts.gitbook.io/fxdocs/scripts/fxcrafting.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.
