qs-inventory
This guide explains how to add a new throwable weapon to qs-inventory, using a fictional example called Newspaper (weapon_acidpackage).
File: shared/items.lua
['weapon_acidpackage'] = {
['name'] = 'weapon_acidpackage',
['label'] = 'Newspaper',
['weight'] = 1000,
['type'] = 'weapon',
['ammotype'] = nil,
['image'] = 'weapon_acidpackage.png',
['unique'] = true,
['useable'] = false,
['description'] = 'A printed or digital publication with news and articles'
}File: shared/weapons.lua
esx_inventory
Not supported without inventory metadata.
qb-inventory
This guide explains how to add a new throwable weapon to QB, using a fictional example called Newspaper (weapon_acidpackage).
File: qb-core/shared/items.lua
["weapon_acidpackage"] = { name = "weapon_acidpackage", label = "Newspaper", weight = 1000, type = "weapon", image = "weapon_acidpackage.png", unique = true, useable = false, shouldClose = true, description = "A printed or digital publication with news and articles" },File: qb-core/shared/weapons.lua
ox_inventory
This guide explains how to register a new throwable item in ox_inventory, using a custom weapon example called WEAPON_ACIDPACKAGE.
File: usually found in data/items.lua or your custom items definition file.
['WEAPON_ACIDPACKAGE'] = {
label = 'Newspaper',
weight = 0,
throwable = true,
}


