> 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/old-free/editor-4.md). Agents can also search and read this documentation through its [MCP server](https://shift-studios.gitbook.io/docs/~gitbook/mcp).

# Ammo

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%2FcZoiGMUGcatKKpkldenC%2Fammo.png?alt=media&amp;token=dc22b75e-4d97-4a2c-bc59-f2ee46848958" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Ammo

Read Everything Below To Install
{% endstep %}

{% step %}

### Ensure All Dependencies Are Installed

```
Required: ox_lib

Framework Support: ESX, QBCore, Qbox & Standalone

Framework Detection: Automatic Or Manually Configurable

Inventory Ready: Pre-Configured Installation Files Included
```

{% 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

{% code expandable="true" %}

```lua
These Are Pre Configured ox_inventory Items - There Are More In The Install File
All Images For These Items Are Located In The Install Folder Included With The Script

['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 The Resource

{% 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 %}
