FOR QBCORE SERVERS
Custom weapons for QBCore, with the weapons table rows written
QBCore wants a weapon declared in shared/weapons.lua, an item in shared/items.lua and an image inside the inventory resource. The export writes the weapons rows and tells you where the rest goes.
Three places, not one
A QBCore weapon lives in more files than most people expect. The weapon is declared in QBShared.Weapons, the inventory item is declared separately in QBShared.Items, and the icon sits inside whichever inventory resource the server runs. A pack that hands over only a stream folder leaves all three to you.
- Drop the resource folder into
resourcesand add anensureline for it inserver.cfg - Paste the rows from
items/qb_weapons.luaintoQBShared.Weaponsinqb-core/shared/weapons.lua - Add an item with the same name to
qb-core/shared/items.lua - Copy the PNG from
items/intoqb-inventory/html/images/, if the export includes one - Restart
qb-coreand your inventory
The weapons rows are generated from the weapon's own metadata: name, label, weapon type and ammo type. The item entry is not generated, because its weight and description are decisions about your economy. It takes this shape:
shared/items.lua
weapon_youritem = {
name = 'weapon_youritem',
label = 'Your Weapon',
weight = 1000,
type = 'weapon',
ammotype = 'AMMO_PISTOL',
image = 'weapon_youritem.png',
unique = true,
useable = false,
description = 'A custom sidearm',
},One emblem across a faction loadout
Servers rarely want a single weapon. A gang wants its emblem on a pistol, an SMG and a rifle; the police want a department mark on the carbine. Pricing follows that: every weapon after the first in the same order costs less, and the first weapon on a new account is free.
Load the emblem in the skin studio and add it as a decal on each weapon in turn. Every model has its own texture layout, so you place it per weapon by clicking the panel you want on the 3D model. That keeps the mark on a surface players see, not under a magazine.
$5 for the first weapon in an order and $4 for every one after it, paid once, so a set of 9 comes to $37 instead of $45. The first weapon on a new account is free. Buying a weapon puts the model in your library, and the studio exports it as often as you like.
Questions
Does this work on older QBCore versions?
What if my server uses qb-inventory instead of ox_inventory?
Can I put one design on a whole faction's weapons?
Is the first weapon really free?
Guides worth reading next
12 models to start with
Taken from the epic collection, out of 538 models in the library. Each one opens on its own page with the measured specification and the texture manifest.
Other server types
FREE TOOLS
Free tools that go with this
The names, hashes and weapons.meta values behind every model in the library, free to copy into your own scripts.











