Compatibility with ESX
Last updated
This guide explains how to make the Advanced Tactical Gas System compatible with ESX and your inventory system.
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.
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:
esx_inventory ExampleOpen the file:
config.lua of your inventory system
Scroll 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.
WEAPON_GRENADE_STUN
-1136999868
WEAPON_GRENADE_SMOKE
-1858931262
WEAPON_GRENADE_TEARGAS
-1567258436
Last updated