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
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:
['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?
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.
Last updated