ox_inventory
This guide explains how to register a new throwable item in ox_inventory
, such as a custom newspaper weapon called WEAPON_ACIDPACKAGE
.
1
Register The Item
File: Usually located in data/items.lua
or your custom items definition file.
Add the following entry to the items list:
luaCopiarEditar['WEAPON_ACIDPACKAGE'] = {
label = 'Newspaper',
weight = 0,
throwable = true,
}
🔁 You can adjust the
weight
value if needed. Setting it to0
makes it weightless in the inventory.
Last updated