• Yearly plans on Discord Boosts and others (see discord) are heavily priced off! Check out our discord for more info

QBCORE xtxvxtx_dragon_katanas (3 Viewers)

edwardss

Member
Jul 31, 2024
8
3
3
Credits
46
e361be3999a08b4fe1978904b69024dc246dd0d8_2_690x294.jpeg

To add this to Qbcore servers, additional coding is required. Add the weapon to the below files

qb-core\shared\items.lua

qb-core\shared\weapons.lua

qb-smallresources\client\weapondraw.lua

qb-inventory\image

Here are the qb-core lines to add to add this as a working weapon on your server


Inventory icons are in the main folder, add them to:
"qb-inventory\html\images"

------------------------------------------------------------------------
"qb-core\shared\items.lua"
['weapon_dragon_katana_red'] = {['name'] = 'weapon_dragon_katana_red', ['label'] = 'Red Dragon Katana', ['weight'] = 1000, ['type'] = 'weapon', ['ammotype'] = nil, ['image'] = 'weapon_dragon_katana_red.png', ['unique'] = true, ['useable'] = true, ['description'] = 'Red Dragon Katana'},
['weapon_dragon_katana_blue'] = {['name'] = 'weapon_dragon_katana_blue', ['label'] = 'Blue Dragon Katana', ['weight'] = 1000, ['type'] = 'weapon', ['ammotype'] = nil, ['image'] = 'weapon_dragon_katana_Blue.png', ['unique'] = true, ['useable'] = true, ['description'] = 'Blue Dragon Katana'},
['weapon_dragon_katana_green'] = {['name'] = 'weapon_dragon_katana_green', ['label'] = 'Green Dragon Katana', ['weight'] = 1000, ['type'] = 'weapon', ['ammotype'] = nil, ['image'] = 'weapon_dragon_katana_Green.png', ['unique'] = true, ['useable'] = true, ['description'] = 'Green Dragon Katana'},
['weapon_dragon_katana_purple'] = {['name'] = 'weapon_dragon_katana_purple', ['label'] = 'Purple Dragon Katana', ['weight'] = 1000, ['type'] = 'weapon', ['ammotype'] = nil, ['image'] = 'weapon_dragon_katana_Purple.png', ['unique'] = true, ['useable'] = true, ['description'] = 'Purple Dragon Katana'},
['weapon_dragon_katana_yellow'] = {['name'] = 'weapon_dragon_katana_yellow', ['label'] = 'Yellow Dragon Katana', ['weight'] = 1000, ['type'] = 'weapon', ['ammotype'] = nil, ['image'] = 'weapon_dragon_katana_Yellow.png', ['unique'] = true, ['useable'] = true, ['description'] = 'Yellow Dragon Katana'},

------------------------------------------------------------------------
"qb-core\shared\weapons.lua"
[`weapon_dragon_katana_red`] = {['name'] = 'weapon_dragon_katana_red', ['label'] = 'Weapon Red Dragon Katana', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`weapon_dragon_katana_blue`] = {['name'] = 'weapon_dragon_katana_blue', ['label'] = 'Weapon Blue Dragon Katana', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`weapon_dragon_katana_green`] = {['name'] = 'weapon_dragon_katana_green', ['label'] = 'Weapon Green Dragon Katana', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`weapon_dragon_katana_purple`] = {['name'] = 'weapon_dragon_katana_purple', ['label'] = 'Weapon Purple Dragon Katana', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`weapon_dragon_katana_yellow`] = {['name'] = 'weapon_dragon_katana_yellow', ['label'] = 'Weapon Yellow Dragon Katana', ['ammotype'] = nil, ['damagereason'] = 'Knifed / Stabbed / Eviscerated'},

------------------------------------------------------------------------
"qb-smallresources\client\weapdraw.lua"
'WEAPON_DRAGON_KATANA_RED',
'WEAPON_DRAGON_KATANA_BLUE',
'WEAPON_DRAGON_KATANA_GREEN',
'WEAPON_DRAGON_KATANA_PURPLE',
'WEAPON_DRAGON_KATANA_YELLOW',
 
Last edited:
  • Post hidden due to user being banned.

Users who are viewing this thread

Top