This guide outlines how to fully integrate a custom throwable weapon — in this case, a newspaper object called weapon_acidpackage — into the QBCore ecosystem using qb-core, qb-inventory, qb-weapons, and related modules.
1
Register The Item
File:qb-core/shared/items.lua
Add the following entry:
['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'}
🧠 Ensure the image file matches the item name and is placed in the appropriate image directory (html/images/items/ or equivalent).