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

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:

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

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

Summary of Hashes

Weapon
Hash

WEAPON_GRENADE_STUN

-1136999868

WEAPON_GRENADE_SMOKE

-1858931262

WEAPON_GRENADE_TEARGAS

-1567258436

Last updated