Ox Inventory Integration

Important: OX Inventory Weapon Whitelist

If you are using ox_inventory, you must whitelist the WEAPON_SPRAYGUN so that the inventory system does not automatically remove the water gun from players' hands during the mission.

Find the ignoreweapons section in your ox_inventory/init.lua file and add the following line:

ox_inventory/init.lua
ignoreweapons[`WEAPON_SPRAYGUN`] = true

Example of how it should look in the file:

ignoreweapons[`WEAPON_UNARMED`] = true
ignoreweapons[`WEAPON_HANDCUFFS`] = true
ignoreweapons[`WEAPON_GARBAGEBAG`] = true
ignoreweapons[`OBJECT`] = true
ignoreweapons[`WEAPON_HOSE`] = true
ignoreweapons[`WEAPON_SPRAYGUN`] = true  -- Add this line!

Last updated