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

# Realistic Reload

Magazine-based reloading with saved round counts, refill actions and magazine ejection.

Magazine-based reloading with saved round counts, refill actions and magazine ejection.

## Requirements

**ox\_lib** and **ox\_inventory** for the included inventory integration. Framework bridges: ESX, QBCore and Qbox. Other inventories require implementing the custom bridge.

## Installation

{% stepper %}
{% step %}

### Register items

Install as `tn_realisticreload`. Add `install/items.lua` definitions to ox\_inventory and copy `install/images/*.png` to inventory images. Preserve item client export names.
{% endstep %}

{% step %}

### Map ammunition

Edit `Config.Magazines` in `config.lua` to map ammo to magazine items and capacities. Review `Config.ExcludedWeapons`.
{% endstep %}

{% step %}

### Start

```cfg
ensure ox_lib
ensure ox_inventory
ensure tn_realisticreload
```

Start the framework before its inventory. Test a configured weapon with its matching magazine.
{% endstep %}
{% endstepper %}

## Usage and settings

Use a magazine item to refill it with matching loose ammunition. Press **R** to reload the equipped weapon; `/magout` ejects its magazine.

| Setting                                 | Purpose                         |
| --------------------------------------- | ------------------------------- |
| `Config.Framework` / `Config.Inventory` | Bridges                         |
| `Config.NewMagazinesFull`               | Initial rounds without metadata |
| `Config.EjectCommand`                   | Removal command                 |
| `Config.ExcludedWeapons`                | Normal reload exceptions        |
| `Config.Locale`                         | Language                        |

{% hint style="info" %}
Unmapped ammunition and excluded weapons keep normal ox\_inventory reloading.
{% endhint %}

## Technical documentation

* [Items & magazines](https://tn-modifications.gitbook.io/tn-modifications/tn_realisticreload/items.md) — Install every included magazine item and add your own ammunition mappings.
* [Exports & events](https://tn-modifications.gitbook.io/tn-modifications/tn_realisticreload/exports.md) — Client-side reload, ejection and inventory refill integration.
* [Configuration](https://tn-modifications.gitbook.io/tn-modifications/tn_realisticreload/configuration.md) — Configuration examples, supported options and setup checks.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://tn-modifications.gitbook.io/tn-modifications/tn_realisticreload.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
