Santa & Christmas Edition36 maps, limited runlimited runShop the drop

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.

  1. Drop the resource folder into resources and add an ensure line for it in server.cfg
  2. Paste the rows from items/qb_weapons.lua into QBShared.Weapons in qb-core/shared/weapons.lua
  3. Add an item with the same name to qb-core/shared/items.lua
  4. Copy the PNG from items/ into qb-inventory/html/images/, if the export includes one
  5. Restart qb-core and 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.

What a weapon costs

$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?
The generated rows use the hashed-key form of QBShared.Weapons with name, label, weapontype, ammotype and damagereason. If your build of qb-core uses a different shape, copy the values across by hand.
What if my server uses qb-inventory instead of ox_inventory?
The export carries both sets: items/qb_weapons.lua for qb-core and items/ox_inventory_weapons.lua for ox_inventory. With qb-inventory, use the QBCore rows and copy the PNG into its images folder.
Can I put one design on a whole faction's weapons?
Yes. Load the emblem in the studio and place it on each weapon you want it on. Placement is done per weapon, because each model has its own texture sheet.
Is the first weapon really free?
Yes. The first weapon exported on a new account costs nothing, and it is the full export, not a watermarked sample.

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.

All free tools
Weapon hash listEvery weapon name with its joaat hash, signed and hex, and the model it loads.free reference
Weapon stats and componentsEvery weapon with the damage, range, clip size and fire rate out of the game’s own weapons.meta, the components each one actually accepts, and its…120 weapons · 599 attachment slots
weapons.meta editorEdit weapons.meta starting from the game's own values for 120 weapons.120 weapons loaded
Model browserEvery vehicle, ped and weapon in the game behind one search box, with the picture where we have one, the spawn name, the hash in hex, unsigned and…1,901 models