# Compatibility with OX Inventory

This guide explains how to make the **Advanced Tactical Gas System** fully compatible with **OX Inventory**.

***

### 1. Follow Our Integration Guide

To ensure smooth integration, first follow our general setup guide:\
➡️ [**Add a Custom Weapon on OX Inventory**](/framework-compatibility/add-a-custom-weapon-on-ox-inventory.md)

This will help you add the required weapons correctly into the OX Inventory system.

***

### 2. Modify the Weapons Table

When you reach the step for adding weapons to your inventory’s configuration, you must include a specific line to ensure proper functionality of grenades.

Update your weapon entries like this:

```lua
['WEAPON_GRENADE_STUN'] = {
    label = 'Stun Grenade',
    weight = 400,
    throwable = true, -- Required for correct grenade behavior
},

['WEAPON_GRENADE_SMOKE'] = {
    label = 'Smoke Grenade',
    weight = 400,
    throwable = true, -- Required for correct grenade behavior
},

['WEAPON_GRENADE_TEARGAS'] = {
    label = 'Tear Gas Grenade',
    weight = 400,
    throwable = true, -- Required for correct grenade behavior
},
```

***

### ❗ Why is `throwable = true` required?

Without this line, the grenades may not behave as expected in-game.\
By setting `throwable = true`, OX Inventory recognizes the weapon as a throwable item, allowing correct interaction and usage logic with the script.


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
