Custom-Weapons
Custom-Weapons copied to clipboard
How does this work when you have to delete QB-WEAPONS,
i get error cannot use this item, to use ox inventory u delete qb weapons???? so what do you do in this case.
Hey I have same problem did u find a fix??
if using ox_inventory just follow these steps,
If using OX then place in ox_inventory/data/weapons.lua
-- Custom Weapons
['WEAPON_AK47'] = { label = 'AK-47', weight = 1000, durability = 0.0, ammoname = 'ammo-rifle',},
['WEAPON_DE'] = { label = 'Desert Eagle', weight = 1000, durability = 0.0, ammoname = 'ammo-45',},
['WEAPON_FNX45'] = { label = 'FN FNX-45', weight = 1000, durability = 0.0, ammoname = 'ammo-45',},
['WEAPON_GLOCK17'] = { label = ' Glock 17', weight = 1000, durability = 0.0, ammoname = 'ammo-45',},
['WEAPON_M4'] = { label = ' M4A1', weight = 1000, durability = 0.0, ammoname = 'ammo-rifle',},
['WEAPON_M9'] = { label = 'Beretta M9A3', weight = 1000, durability = 0.0, ammoname = 'ammo-45',},
['WEAPON_M70'] = { label = 'M70', weight = 1000, durability = 0.0, ammoname = 'ammo-rifle',},
['WEAPON_M1911'] = { label = 'M1911', weight = 1000, durability = 0.0, ammoname = 'ammo-45',},
['WEAPON_UZI'] = { label = 'UZI', weight = 1000, durability = 0.0, ammoname = 'ammo-9',},
['WEAPON_MAC10'] = { label = 'MAC-10', weight = 1000, durability = 0.0, ammoname = 'ammo-9',},
['WEAPON_MOSSBERG'] = { label = 'Mossberg 500', weight = 1000, durability = 0.0, ammoname = 'ammo-shotgun',},
['WEAPON_REMINGTON'] = { label = 'Remington 870', weight = 1000, durability = 0.0, ammoname = 'ammo-shotgun',},
['WEAPON_SCARH'] = { label = 'PD SCAR-H', weight = 1000, durability = 0.0, ammoname = 'ammo-rifle',},
['WEAPON_SHIV'] = { label = 'Shiv', weight = 1000, durability = 0.0, },
['WEAPON_AR15'] = { label = 'PD AR-15', weight = 1000, durability = 0.0, ammoname = 'ammo-rifle',},
['WEAPON_MK14'] = { label = 'PD MK14', weight = 1000, durability = 0.0, ammoname = 'ammo-sniper',},
['WEAPON_HUNTINGRIFLE'] = { label = 'Hunting Rifle', weight = 1000, durability = 0.0, ammoname = 'ammo-sniper',},
['WEAPON_KATANA'] = { label = 'Katana', weight = 1000, durability = 0.0, },
['WEAPON_SLEDGEHAMMER'] = { label = 'Sledge Hammer', weight = 1000, durability = 0.0, },
['WEAPON_MP9'] = { label = 'MP9', weight = 1000, durability = 0.0, ammoname = 'ammo-9',},
['WEAPON_M110'] = { label = 'M110', weight = 1000, durability = 0.0, ammoname = 'ammo-sniper',},
['WEAPON_HK416'] = { label = 'HK-416', weight = 1000, durability = 0.0, ammoname = 'ammo-rifle',},
['WEAPON_AK74'] = { label = 'AK-74', weight = 1000, durability = 0.0, ammoname = 'ammo-rifle',},
['WEAPON_AKS74'] = { label = 'AK-S74', weight = 1000, durability = 0.0, ammoname = 'ammo-rifle',},
['WEAPON_GLOCK18C'] = { label = 'Glock 18C', weight = 1000, durability = 0.0, ammoname = 'ammo-45',},
['WEAPON_GLOCK22'] = { label = 'Glock 22', weight = 1000, durability = 0.0, ammoname = 'ammo-45',},
['WEAPON_MP5'] = { label = 'H&K MP5', weight = 1000, durability = 0.0, ammoname = 'ammo-9',},
['WEAPON_COLBATON'] = { label = 'PD Baton', weight = 1000, durability = 0.0},
--CUSTOM knifes
['WEAPON_PERFORATOR'] = {label = 'The Perforator', weight = 500, durability = 0.1,},
['WEAPON_BAYONETKNIFE'] = {label = 'Bayonet Knife', weight = 300,durability = 0.1,},
['WEAPON_BLUEBFKNIFE'] = {label = 'Blue Steel Butterfly Knife',weight = 300,durability = 0.1,},
['WEAPON_BFKNIFE'] = {label = 'Vanilla Butterfly Knife',weight = 300,durability = 0.1,},
['WEAPON_CHBFKNIFE'] = {label = 'Case Hardened Butterfly Knife',weight = 300,durability = 0.1,},
['WEAPON_CRIMSONBFKNIFE'] = {label = 'Crimson Butterfly Knife',weight = 300,durability = 0.1,},
['WEAPON_FADEBFKNIFE'] = {label = 'Fade Butterfly Knife',weight = 300,durability = 0.1,},
['WEAPON_FLIPKNIFE'] = {label = 'Flip Knife', weight = 300,durability = 0.1,},
['WEAPON_FORESTBFKNIFE'] = {label = 'Forest Butterfly Knife',weight = 300,durability = 0.1,},
['WEAPON_GUTKNIFE'] = {label = 'Gut Knife', weight = 300,durability = 0.1,},
['WEAPON_HUNTSMANKNIFE'] = {label = 'Huntsman Knife', weight = 300,durability = 0.1,},
['WEAPON_KARAMBITKNIFE'] = {label = 'Karamabit Knife', weight = 300,durability = 0.1,},
['WEAPON_SAFARIBFKNIFE'] = {label = 'Safari Mesh Butterfly Knife',weight = 300,durability = 0.1,},
['WEAPON_SCORCHEDBFKNIFE'] = {label = 'Scorched Butterfly Knife',weight = 300,durability = 0.1,},
['WEAPON_SLAUGHTERBFKNIFE'] = {label = 'Slaughter Butterfly Knife',weight = 300,durability = 0.1,},
['WEAPON_STAINEDRBFKNIFE'] = {label = 'Stained Butterfly Knife',weight = 300,durability = 0.1,},
['WEAPON_URBANRBFKNIFE'] = {label = 'Urban Masked Butterfly Knife',weight = 300,durability = 0.1,},
And then paste this in your QB-core shared weapons.lua "or QBX-core shared weapons.lua
## Drop the next code in `qb-core/shared/weapons.lua`
```lua
[`weapon_ak47`] = {['name'] = 'weapon_ak47', ['label'] = 'AK-47', ['ammotype'] = 'AMMO_RIFLE', ['damagereason'] = 'Ended / Rifled / Shot down / Floored'},
[`weapon_m70`] = {['name'] = 'weapon_m70', ['label'] = 'M70', ['ammotype'] = 'AMMO_RIFLE', ['damagereason'] = 'Ended / Rifled / Shot down / Floored'},
[`weapon_de`] = {['name'] = 'weapon_de', ['label'] = 'Desert Eagle', ['ammotype'] = 'AMMO_PISTOL', ['damagereason'] = 'Pistoled / Blasted / Plugged / Bust a cap in'},
[`weapon_fnx45`] = {['name'] = 'weapon_fnx45', ['label'] = 'FN FNX45', ['ammotype'] = 'AMMO_PISTOL', ['damagereason'] = 'Pistoled / Blasted / Plugged / Bust a cap in'},
[`weapon_glock17`] = {['name'] = 'weapon_glock17', ['label'] = 'PD Glock 17', ['ammotype'] = 'AMMO_PISTOL', ['damagereason'] = 'Pistoled / Blasted / Plugged / Bust a cap in'},
[`weapon_m4`] = {['name'] = 'weapon_m4', ['label'] = 'PD M4A1', ['ammotype'] = 'AMMO_RIFLE', ['damagereason'] = 'Ended / Rifled / Shot down / Floored'},
[`weapon_m9`] = {['name'] = 'weapon_m9', ['label'] = 'Beretta M9A3', ['ammotype'] = 'AMMO_PISTOL', ['damagereason'] = 'Pistoled / Blasted / Plugged / Bust a cap in'},
[`weapon_m1911`] = {['name'] = 'weapon_m1911', ['label'] = 'M1911', ['ammotype'] = 'AMMO_PISTOL', ['damagereason'] = 'Pistoled / Blasted / Plugged / Bust a cap in'},
[`weapon_uzi`] = {['name'] = 'weapon_uzi', ['label'] = 'UZI', ['ammotype'] = 'AMMO_SMG', ['damagereason'] = 'Riddled / Drilled / Finished / Submachine Gunned'},
[`weapon_mac10`] = {['name'] = 'weapon_mac10', ['label'] = 'MAC-10', ['ammotype'] = 'AMMO_SMG', ['damagereason'] = 'Riddled / Drilled / Finished / Submachine Gunned'},
[`weapon_mossberg`] = {['name'] = 'weapon_mossberg', ['label'] = 'Mossberg 500', ['ammotype'] = 'AMMO_SHOTGUN', ['damagereason'] = 'Devastated / Pulverized / Shotgunned'},
[`weapon_remington`] = {['name'] = 'weapon_remington', ['label'] = 'Remington 870', ['ammotype'] = 'AMMO_SHOTGUN', ['damagereason'] = 'Devastated / Pulverized / Shotgunned'},
[`weapon_scarh`] = {['name'] = 'weapon_scarh', ['label'] = 'PD SCAR-H', ['ammotype'] = 'AMMO_RIFLE', ['damagereason'] = 'Ended / Rifled / Shot down / Floored'},
[`weapon_shiv`] = {['name'] = 'weapon_shiv', ['label'] = 'Shiv', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`weapon_katana`] = {['name'] = 'weapon_katana', ['label'] = 'Katana', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`weapon_sledgehammer`] = {['name'] = 'weapon_sledgehammer', ['label'] = 'Sledge Hammer', ['ammotype'] = nil, ['damagereason'] = 'Melee killed / Whacked / Executed / Beat down / Murdered / Battered'},
[`weapon_ar15`] = {['name'] = 'weapon_ar15', ['label'] = 'PD AR-15', ['ammotype'] = 'AMMO_RIFLE', ['damagereason'] = 'Ended / Rifled / Shot down / Floored'},
[`weapon_mk14`] = {['name'] = 'weapon_mk14', ['label'] = 'PD MK14', ['ammotype'] = 'AMMO_SNIPER', ['damagereason'] = 'Ended / Sniped / Shot down / Floored'},
[`weapon_huntingrifle`] = {['name'] = 'weapon_huntingrifle', ['label'] = 'Hunting Rifle', ['ammotype'] = 'AMMO_SNIPER', ['damagereason'] = 'Ended / Sniped / Shot down / Floored'},
[`weapon_mp9`] = {['name'] = 'weapon_mp9', ['label'] = 'MP9', ['ammotype'] = 'AMMO_SMG', ['damagereason'] = 'Riddled / Drilled / Finished / Submachine Gunned'},
[`weapon_m110`] = {['name'] = 'weapon_m110', ['label'] = 'M110', ['ammotype'] = 'AMMO_SNIPER', ['damagereason'] = 'Ended / Sniped / Shot down / Floored'},
[`weapon_hk416`] = {['name'] = 'weapon_hk416', ['label'] = 'HK-416', ['ammotype'] = 'AMMO_RIFLE', ['damagereason'] = 'Ended / Rifled / Shot down / Floored'},
[`weapon_ak74`] = {['name'] = 'weapon_ak74', ['label'] = 'AK-74', ['ammotype'] = 'AMMO_RIFLE', ['damagereason'] = 'Ended / Rifled / Shot down / Floored'},
[`weapon_aks74`] = {['name'] = 'weapon_aks74', ['label'] = 'AK-S74', ['ammotype'] = 'AMMO_RIFLE', ['damagereason'] = 'Ended / Rifled / Shot down / Floored'},
[`weapon_glock22`] = {['name'] = 'weapon_glock22', ['label'] = 'Glock 22', ['ammotype'] = 'AMMO_PISTOL', ['damagereason'] = 'Pistoled / Blasted / Plugged / Bust a cap in'},
[`weapon_glock18c`] = {['name'] = 'weapon_glock18c', ['label'] = 'Glock 18C', ['ammotype'] = 'AMMO_PISTOL', ['damagereason'] = 'Pistoled / Blasted / Plugged / Bust a cap in'},
[`weapon_mp5`] = {['name'] = 'weapon_mp5', ['label'] = 'H&K MP5', ['ammotype'] = 'AMMO_SMG', ['damagereason'] = 'Riddled / Drilled / Finished / Submachine Gunned'},
[`weapon_colbaton`] = {['name'] = 'weapon_colbaton', ['label'] = 'Baton', ['ammotype'] = nil, ['damagereason'] = 'Beat'},
---knifes
[`WEAPON_URBANRBFKNIFE`] = {['name'] = 'WEAPON_URBANRBFKNIFE', ['label'] = 'Urban Masked Butterfly Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_STAINEDRBFKNIFE`] = {['name'] = 'WEAPON_STAINEDRBFKNIFE', ['label'] = 'Stained Butterfly Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_SLAUGHTERBFKNIFE`] = {['name'] = 'WEAPON_SLAUGHTERBFKNIFE', ['label'] = 'Slaughter Butterfly Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_SCORCHEDBFKNIFE`] = {['name'] = 'WEAPON_SCORCHEDBFKNIFE', ['label'] = 'Scorched Butterfly Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_SAFARIBFKNIFE`] = {['name'] = 'WEAPON_SAFARIBFKNIFE', ['label'] = 'Safari Mesh Butterfly Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_KARAMBITKNIFE`] = {['name'] = 'WEAPON_KARAMBITKNIFE', ['label'] = 'Karamabit Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_HUNTSMANKNIFE`] = {['name'] = 'WEAPON_HUNTSMANKNIFE', ['label'] = 'Huntsman Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_GUTKNIFE`] = {['name'] = 'WEAPON_GUTKNIFE', ['label'] = 'Gut Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_FORESTBFKNIFE`] = {['name'] = 'WEAPON_FORESTBFKNIFE', ['label'] = 'Forest Butterfly Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_PERFORATOR`] = {['name'] = 'WEAPON_PERFORATOR', ['label'] = 'The Perforator', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_BLUEBFKNIFE`] = {['name'] = 'WEAPON_BLUEBFKNIFE', ['label'] = 'Blue Steel Butterfly Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_BFKNIFE`] = {['name'] = 'WEAPON_BFKNIFE', ['label'] = 'Vanilla Butterfly Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_CHBFKNIFE`] = {['name'] = 'WEAPON_CHBFKNIFE', ['label'] = 'Case Hardened Butterfly Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_CRIMSONBFKNIFE`] = {['name'] = 'WEAPON_CRIMSONBFKNIFE', ['label'] = 'Crimson Butterfly Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_FADEBFKNIFE`] = {['name'] = 'WEAPON_FADEBFKNIFE', ['label'] = 'Fade Butterfly Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`WEAPON_FLIPKNIFE`] = {['name'] = 'WEAPON_FLIPKNIFE', ['label'] = 'Flip Knife', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
This worked for me with no issue. "however i have not tested all weapons as i only wanted the katana :)