> 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_patrolbag.md).

# Advanced Patrol Bag

Job-based equipment bags with saved loadouts, extra-bag permissions and vehicle sharing.

Job-based equipment bags with saved loadouts, extra-bag permissions and vehicle sharing.

## Requirements

ESX, QBCore or Qbox, **ox\_lib**, and ox\_inventory or qb-inventory. Optional ox\_target or qb-target.

## Installation

{% stepper %}
{% step %}

### Install

Copy `tn_patrolbag` into resources. Ensure configured equipment items exist in your inventory.
{% endstep %}

{% step %}

### Set up bags

Edit `Config.Desks`, `Config.StandardBags` and `Config.ExtraBags` in `config.lua`: job names, item limits, minimum grades and bag weights.
{% endstep %}

{% step %}

### Start

```cfg
ensure ox_lib
ensure tn_patrolbag
```

Start framework and inventory first. Visit a desk with the matching job.
{% endstep %}
{% endstepper %}

## Access and use

Collect a bag at a desk, prepare a loadout and share vehicle bags with authorized colleagues. Contents stay in the script bag rather than the normal trunk inventory.

| Setting                   | Purpose                                   |
| ------------------------- | ----------------------------------------- |
| `alwaysAccessGrade`       | Automatic extra-bag access and management |
| `Config.PermissionRange`  | Nearby-player permissions range           |
| `Config.SharedJobAccess`  | Share bags within a job                   |
| `Config.VehicleLockCheck` | Vehicle lock check                        |
| `Config.AutoCleanup`      | Cleanup timing                            |

{% hint style="info" %}
Set `alwaysAccessGrade = false` for individually granted permissions only. Managers grant access and manager rights through the desk menu.
{% endhint %}

## Technical documentation

* [Configure bags & equipment](https://tn-modifications.gitbook.io/tn-modifications/tn_patrolbag/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_patrolbag.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.
