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
esx_inventory
ExampleOpen the file:
config.lua
of your inventory systemScroll down to find the variable:
Config.Throwables = { ... }
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, }
Important: These hashes represent the weapon models. Without adding them, your inventory may not recognize or allow players to throw the grenades properly.
Summary of Hashes
WEAPON_GRENADE_STUN
-1136999868
WEAPON_GRENADE_SMOKE
-1858931262
WEAPON_GRENADE_TEARGAS
-1567258436
Last updated