> For the complete documentation index, see [llms.txt](https://docs.rytrak.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rytrak.fr/scripts/advanced-tactical-gas-system/compatibility-with-esx.md).

# Compatibility with ESX

This guide explains how to make the **Advanced Tactical Gas System** compatible with **ESX** and your inventory system.

***

### 1. Follow Our Integration Guide

Before anything else, follow our dedicated guide:\
➡️ [**Add a Custom Weapon on ESX**](/framework-compatibility/add-a-custom-weapon-on-esx.md)

This will help you correctly register the stun, smoke, and tear gas grenades in your weapon database.

***

### 2. Configure Your Inventory

Unlike OX Inventory, **you should not** add `throwable = true` in ESX-based systems.\
The implementation depends entirely on the inventory you're using. Each ESX inventory system is structured differently.

Let’s take the **default `esx_inventory`** as an example:

#### Default `esx_inventory` Example

1. Open the file:\
   `config.lua` of your inventory system
2. Scroll down to find the variable:

   ```lua
   Config.Throwables = { ... }
   ```
3. Add the **hashes** of the grenades used in the Advanced Tactical Gas System:

   ```lua
   Config.Throwables = {
       -- Existing entries...
       WEAPON_GRENADE_STUN = -1136999868,
       WEAPON_GRENADE_SMOKE = -1858931262,
       WEAPON_GRENADE_TEARGAS = -1567258436,
   }
   ```

{% hint style="danger" %}
**Important:** These hashes represent the weapon models. Without adding them, your inventory may not recognize or allow players to throw the grenades properly.
{% endhint %}

***

### Summary of Hashes

| Weapon                   | Hash        |
| ------------------------ | ----------- |
| WEAPON\_GRENADE\_STUN    | -1136999868 |
| WEAPON\_GRENADE\_SMOKE   | -1858931262 |
| WEAPON\_GRENADE\_TEARGAS | -1567258436 |


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.rytrak.fr/scripts/advanced-tactical-gas-system/compatibility-with-esx.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
