Add a custom weapon on OX Inventory

triangle-exclamation
circle-info

When you've finished creating your item, don't forget to set UseFramework to true in the config.lua file of the script in question!

List of weapon names in our scripts:

Advanced Megaphone System

WEAPON_MEGAPHONE

Advanced Pepper Spray

WEAPON_PEPPERSPRAY

WEAPON_ANTIDOTE

Advanced Remote Restraint

WEAPON_BOLAWRAP

Advanced Extrication System

WEAPON_SPREADER

WEAPON_CUTTER

WEAPON_GLASSMASTER

Advanced Tactical Gas System

WEAPON_GRENADE_SMOKE

WEAPON_GRENADE_STUN

WEAPON_GRENADE_TEARGAS

If the weapon gets a bug similar to the gif below (the weapon vibrates) follow the tutorial

  1. Go to the ox_inventory/modules/weapon/client.lua directory

  2. Go to line 77 and replace the two selected lines as shown in the photo below with our code

Replace:

by this:

Last updated