> For the complete documentation index, see [llms.txt](https://shift-studios.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://shift-studios.gitbook.io/docs/free/editor.md). Agents can also search and read this documentation through its [MCP server](https://shift-studios.gitbook.io/docs/~gitbook/mcp).

# Ammo Boxes

Transform Your Server With Shift Studios — Powerful, Optimized, And Reliable Resources Built To Improve Every Experience.

<figure><img src="https://4062160621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgqh3gjuJzDAWNXTD9sEE%2Fuploads%2F600LJ1bJuIlYaYkflPTB%2Ff504b882-9f8a-46e4-8a69-3d57f2c2003f.png?alt=media&amp;token=fc1f437b-b7db-4465-8498-e858090e333f" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Ammo Boxes

Read Everything Below To Install
{% endstep %}

{% step %}

### Drag & Drop

Drag & Drop The Resource Into Your FiveM Server
{% endstep %}

{% step %}

### Ensure The Resource

Make Sure To Ensure shift-ammo In Your Server CFG.
{% endstep %}

{% step %}

### Install Items & Images

```
Images Are Located Inside The Install Folder
```

{% code expandable="true" %}

```lua
['ammo-9-box'] = {
    label = '9mm Ammo Box',
    weight = 500,
    stack = true,
    close = true,
    description = 'A box containing 9mm ammunition.',
},

['ammo-rifle-box'] = {
    label = 'Rifle Ammo Box',
    weight = 750,
    stack = true,
    close = true,
    description = 'A box containing rifle ammunition.',
},

['ammo-rifle2-box'] = {
    label = 'Heavy Rifle Ammo Box',
    weight = 850,
    stack = true,
    close = true,
    description = 'A box containing heavy rifle ammunition.',
},

['ammo-shotgun-box'] = {
    label = 'Shotgun Ammo Box',
    weight = 750,
    stack = true,
    close = true,
    description = 'A box containing shotgun ammunition.',
},

['ammo-22-box'] = {
    label = '.22 Ammo Box',
    weight = 400,
    stack = true,
    close = true,
    description = 'A box containing .22 ammunition.',
},

['ammo-38-box'] = {
    label = '.38 Ammo Box',
    weight = 500,
    stack = true,
    close = true,
    description = 'A box containing .38 ammunition.',
},

['ammo-44-box'] = {
    label = '.44 Ammo Box',
    weight = 550,
    stack = true,
    close = true,
    description = 'A box containing .44 ammunition.',
},

['ammo-45-box'] = {
    label = '.45 Ammo Box',
    weight = 550,
    stack = true,
    close = true,
    description = 'A box containing .45 ammunition.',
},

['ammo-50-box'] = {
    label = '.50 Ammo Box',
    weight = 650,
    stack = true,
    close = true,
    description = 'A box containing .50 ammunition.',
},
```

{% endcode %}
{% endstep %}

{% step %}

### Configure Resource

Make Sure To Configure The Resource To Your Liking

{% code expandable="true" %}

```lua
-- ⚫ ███████╗██╗  ██╗██╗███████╗████████╗    ███████╗████████╗██╗   ██╗██████╗ ██╗ ██████╗ ███████╗ ⚫
-- ⬛ ██╔════╝██║  ██║██║██╔════╝╚══██╔══╝    ██╔════╝╚══██╔══╝██║   ██║██╔══██╗██║██╔═══██╗██╔════╝ ⬛
-- ⚫ ███████╗███████║██║█████╗     ██║       ███████╗   ██║   ██║   ██║██║  ██║██║██║   ██║███████╗ ⚫
-- ⬛ ╚════██║██╔══██║██║██╔══╝     ██║       ╚════██║   ██║   ██║   ██║██║  ██║██║██║   ██║╚════██║ ⬛
-- ⚫ ███████║██║  ██║██║██║        ██║       ███████║   ██║   ╚██████╔╝██████╔╝██║╚██████╔╝███████║ ⚫
-- ⬛ ╚══════╝╚═╝  ╚═╝╚═╝╚═╝        ╚═╝       ╚══════╝   ╚═╝    ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝ ⬛

Config = {}

-- Framework options: 'auto', 'esx', 'qbcore', 'qbox', 'standalone'
-- 'auto' will detect qbx_core, qb-core, or es_extended in that order.
Config.Framework = 'esx'

-- Set to true to print framework detection and registration information.
Config.Debug = false

-- Configure every ammo box here.
-- item = usable ammo box item
-- ammo = ammo item rewarded
-- amount = amount of ammo rewarded per box
Config.AmmoBoxes = {
    { item = 'ammo-9-box',       ammo = 'ammo-9',       amount = 30 },
    { item = 'ammo-rifle-box',   ammo = 'ammo-rifle',   amount = 30 },
    { item = 'ammo-rifle2-box',  ammo = 'ammo-rifle2',  amount = 30 },
    { item = 'ammo-shotgun-box', ammo = 'ammo-shotgun', amount = 30 },
    { item = 'ammo-22-box',      ammo = 'ammo-22',      amount = 30 },
    { item = 'ammo-38-box',      ammo = 'ammo-38',      amount = 30 },
    { item = 'ammo-44-box',      ammo = 'ammo-44',      amount = 30 },
    { item = 'ammo-45-box',      ammo = 'ammo-45',      amount = 30 },
    { item = 'ammo-50-box',      ammo = 'ammo-50',      amount = 30 },
}

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

Ensure Everything Is Working Well & Enjoy !!
{% endstep %}
{% endstepper %}
