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

# Configuration

Config

```
Config = {}

-- Target Config

Config.UseOXTarget = true                          -- Set to false to use qb-target instead
Config.TargetLabel = 'Use Crafting Table'           -- Target Label Text
Config.TargetIcon = 'fas fa-hammer'                 -- Target Icon

-- Command Config

Config.SetLevelCmd = 'setcraftlevel'                -- Example Use /setcraftlevel [id] [level] [exp] exp is optional
Config.ResetLevelCmd = 'resetcraftlevel'            -- Example Use /resetcraftlevel [Id]

-- Locations Config

Config.CraftingLocations = {
    {
        coords = vector4(1036.96, -2177.3, 31.53, 91.38),       -- Location Of Crafting
        categories = {"Basic", "Paradise"},                     -- All The Categories You Want To Keep At This Locations Check Config.Categories
        animation = {
            dict = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@",
            anim = "machinic_loop_mechandplayer",
            flags = 1,
        },
        label = "Weapon Bench",  -- Unique label
        icon = "fas fa-gun",     -- Unique icon
        gangCheck = {
            enabled = true,
            type = "any",  -- or "all"
            gangs = {"vagos"}  -- List of allowed gangs
        },
        jobCheck = {
            enabled = false,
            jobs = {"mechanic"},  -- List of allowed jobs
            type = "any"  -- "any" means player needs to be in ANY of these jobs
        }
    },
    {
        isPropBased = true,
        propModel = "prop_tool_bench02",
        label = "Tool Workbench",
        icon = "fas fa-tools",
        categories = {"Basic"},
        radius = 2.0,
        animation = {
            dict = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@",
            anim = "machinic_loop_mechandplayer",
            flags = 49
        }
    },
    {
        coords = vector3(1038.1343, -2162.7476, 31.8585),       -- Location Of Crafting
        categories = {"Basic", "Advanced"},                     -- All The Categories You Want To Keep At This Locations Check Config.Categories
        animation = {
            dict = "mini@repair",
            anim = "fixing_a_player",
            flags = 1,
        }
    },
}

-- Categories Config

Config.Categories = {
    "Basic",
    "Advanced",
    "Paradise",
}

-- Item Config

Config.CraftingItems = {
    {
        id = "weapon_pistol",
        name = "Pistol",
        description = "A Pistol",
        category = "Basic",
        requirements = {
            { item = "iron", amount = 1, label = "Iron" }
        },
        output = {
            item = "weapon_pistol",
            amount = 1
        },
        image = "nui://ox_inventory/web/images/weapon_pistol.png",
        levelRequired = 0,
        experienceGained = 10,
        craftingTime = 5000
    },
    {
        id = "weapon_ceramicpistol",
        name = "Ceramic Pistol",
        description = "Ceramic Pistol",
        category = "Advanced",
        requirements = {
            { item = "iron", amount = 1, label = "Iron" }
        },
        output = {
            item = "weapon_ceramicpistol",
            amount = 1
        },
        image = "nui://ox_inventory/web/images/weapon_ceramicpistol.png",
        levelRequired = 2,
        experienceGained = 10,
        craftingTime = 5000
    }
}

-- LevelUp Config

Config.UseParticleEffects = true
```
