# Config

Pay close attention, for this example we are using the job "ammuone" you will need to create a new job for each ammunition in qb-core/shared/jobs.lua

Basic Config Settings

```lua
Config.OfflineTax = 0.7 -- The multiplier to calculate tax, if you want 15% tax it would be 0.15

Config.RegisterWeapon = true -- For Offline Sales (PS-MDT Only)

Config.HapticLogger = false -- Unreleased
```

Setting up location blips

```lua
Config.Blips = {
    ["ammuone"] = { -- Set this to the job name
        name = "Ammunation",
        location = vector3(11.59, -1106.31, 29.11),
        sprite = 110,
        scale = 0.6,
        color = 0,
        shortrange = true
    },
}
```

Management Locations (Different to QB-Management you will need to set that up yourself)

```lua
Config.Management = {
    ["ammuone"] = {
        job = "ammuone",
        location = vector3(9.17, -1110.97, 29.28),
        icon = "far fa-clipboard",
        label = "Management",
        distance = 2,
        width = 0.5,
        depth = 0.5,
        heading = 0,
    },
}
```

What parts they get from delivery runs.

```lua
Config.PartsReward = {
    [1] = { item = "pistolupper", amount = 1},
    [2] = { item = "pistolframe", amount = 1},
    [3] = { item = "pistolbarell", amount = 1},
    [4] = { item = "ammocasing", amount = 6},
}
```

Pickup Locations for Parts

```lua
Config.PickupLocations = {
    [1] = { location = vector4(-593.18, -1792.3, 22.92, 225.9) },
    [2] = { location = vector4(972.86, -2530.98, 28.3, 271.02) },
    [3] = { location = vector4(-429.35, 1110.31, 327.68, 352.08) },
    [4] = { location = vector4(-773.24, 5597.46, 33.61, 172.08) },
    [5] = { location = vector4(-26.36, 6275.31, 31.24, 217.44) },
    [6] = { location = vector4(1965.9, 4639.63, 40.81, 24.58) },
    [7] = { location = vector4(1603.87, 3596.03, 35.28, 302.43) },
}
```

Crafting Locations

```lua
Config.CraftingLocations = {
    [1] = {
        id = "AmmuOneCraft",
        location = vector3(4.22, -1103.64, 29.11),
        heading = 70,
        width = 1,
        depth = 3,
        job = "ammuone",
        label = "Crafting Menu",
        icon = "fas fa-gun",
    },
}
```

Crafting Recipes

```lua
Config.CraftingRecipes = {
    ["pistol_ammo"] = {
        reward_amount = 1,
        desc = "1x Ammo Casing",
        recipe = {
            ["ammocasing"] = 1,
        }
    },
    ["weapon_fnx45"] = {
        reward_amount = 1,
        desc = "1x Pistol Upper, 1x Pistol Frame, 1x Pistol Barrell",
        recipe = {
            ["pistolupper"] = 1,
            ["pistolframe"] = 1,
            ["pistolbarell"] = 1,
        }
    },
    ["weapon_fn57"] = {
        reward_amount = 1,
        desc = "1x Pistol Upper, 1x Pistol Frame, 1x Pistol Barrell",
        recipe = {
            ["pistolupper"] = 1,
            ["pistolframe"] = 1,
            ["pistolbarell"] = 1,
        }
    },
    ["weapon_vomcp"] = {
        reward_amount = 1,
        desc = "1x Pistol Upper, 1x Pistol Frame, 1x Pistol Barrell",
        recipe = {
            ["pistolupper"] = 1,
            ["pistolframe"] = 1,
            ["pistolbarell"] = 1,
        }
    },
    ["weapon_g20"] = {
        reward_amount = 1,
        desc = "1x Pistol Upper, 1x Pistol Frame, 1x Pistol Barrell",
        recipe = {
            ["pistolupper"] = 1,
            ["pistolframe"] = 1,
            ["pistolbarell"] = 1,
        }
    },
}
```

items to be in the employee shop

```lua
Config.ShopItems = {
    { name = 'weapon_knife',        price = 100,  amount = 250 },
    { name = 'weapon_bat',          price = 100,  amount = 250 },
    { name = 'weapon_hatchet',      price = 100,  amount = 250 },
    { name = 'weapon_bayonet',      price = 100,  amount = 250 },
    { name = 'weapon_flip',         price = 100,  amount = 250 },
    { name = 'weapon_gut',          price = 100,  amount = 250 },
    { name = 'weapon_huntsman',     price = 100,  amount = 250 },
    { name = 'weapon_karambit',     price = 100,  amount = 250 },
    { name = 'weapon_shadow',       price = 100,  amount = 250 },
}
```

Cash Register Locations

```lua
Config.CashRegisterSales = {
    ["ammuonesales"] = {
        location = vector3(17.62, -1105.58, 29.29),
        heading = 154.25,
        depth = 0.5,
        width = 0.5,
        job = "ammuone",
        ped = "s_m_y_ammucity_01",
        scenario = "WORLD_HUMAN_COP_IDLES",
        label = "Sell Weapons",
        icon = "fas fa-gun",
    },
}
```

NPC Sales

```
Config.NPCSales = {
    ["ammuone"] = {
        location = vector3(14.06, -1104.94, 29.11),
        heading = 154.25,
        ped = "s_m_y_ammucity_01",
        scenario = "WORLD_HUMAN_COP_IDLES",
        label = "Buy Weapons",
        icon = "fas fa-gun",
    },
}
```


---

# 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://lcdevdocs.gitbook.io/docs/haptic/haptic-ammunation/config.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.
