mdevstore

Chain Mail

Spawn name, install lines and framework snippets for the Chain Mail.

StreetChain Mail$7.99View release

An old weathered bat with steel nails driven right through it, a bright plated chain wound round the barrel and taped down with duct tape, and a black electrical-tape grip.

Spawn nameResourceQBCore itemFinish
WEAPON_CHAINMAILmd_chainmailweapon_chainmailStatic

Install

Put the folder in your resources folder and add it to server.cfg, after your framework and inventory:

server.cfg
ensure md_chainmail

Then do a full restart: weapon metas only load when the server starts. More in Installation.

Framework setup

The same lines are in each weapon's install/ folder.

  1. Inside the items table:

    qb-core/shared/items.lua
    weapon_chainmail = { name = 'weapon_chainmail', label = "Chain Mail", weight = 1000, type = 'weapon', ammotype = nil, image = 'weapon_chainmail.png', unique = true, useable = false, description = "An old weathered bat with steel nails driven right through it, a bright plated chain wound round the barrel and taped down with duct tape, and a black electrical-tape grip." },
  2. Inside the weapons table:

    qb-core/shared/weapons.lua
    [`weapon_chainmail`] = { name = 'weapon_chainmail', label = "Chain Mail", weapontype = 'Melee', ammotype = nil, damagereason = 'Melee killed / Whacked / Executed / Beat down / Murdered / Battered' },
  3. Copy install/images/qb-inventory/weapon_chainmail.png into your inventory's image folder.

Test it

FrameworkCommand
QBCore/giveitem [id] weapon_chainmail 1
ox_inventory/giveitem [id] WEAPON_CHAINMAIL 1
ESX/giveweapon [id] WEAPON_CHAINMAIL 0
qs, core, tgiann/giveitem [id] weapon_chainmail 1
CodeM, ak47Their admin give command, with WEAPON_CHAINMAIL
vMenuWeapon Options → Addon Weapons

Extras

  • mdev-weaponsback already knows this weapon: carry it on your back with no setup.

  • mdev-weaponicons gives it its own weapon wheel icon. It's a thank-you for customers, in the Customer downloads forum of our Discord.

Chain Mail · Weapons docs · mdevstore