# Installation

**Place the script file into your designated `resources` folder. Then, navigate to your inventory's item data file and add the following lines at the end of the list.** \
\
**Remember to add these required items needed to do these processes to your server's shop/black market script, so players get the m and use them (the script doesn't have an inbuild shop as most server use a custom shop script)**<br>

**Ox Inventory  (Copy Paste This At The End Of Your `weapons.lua` Inside** `ox_inventory\data` **)**&#x20;

```
['WEAPON_KATANA_R'] = {
	label = 'Red Katana',
	weight = 2500,
	durability = 0.1,
	client = {
		add = function(total)
			if total > 0 then
				pcall(function() return exports.cl_katana:updateInventory() end)
			end
		end
	}
},

['WEAPON_KATANA_B'] = {
	label = 'Blue Katana',
	weight = 2500,
	durability = 0.1,
	client = {
		add = function(total)
			if total > 0 then
				pcall(function() return exports.cl_katana:updateInventory() end)
			end
		end
	}
},

['WEAPON_KATANA_Y'] = {
	label = 'Yellow Katana',
	weight = 2500,
	durability = 0.1,
	client = {
		add = function(total)
			if total > 0 then
				pcall(function() return exports.cl_katana:updateInventory() end)
			end
		end
	}
},

['WEAPON_KATANA_G'] = {
	label = 'Grey Katana',
	weight = 2500,
	durability = 0.1,
	client = {
		add = function(total)
			if total > 0 then
				pcall(function() return exports.cl_katana:updateInventory() end)
			end
		end
	}
},
```

**QB Inventory  (Copy Paste This At The End Of Your `items.lua` Inside** `qb-core`**)**&#x20;

```
weapon_katana_r             = { name = 'weapon_katana_r', label = 'Katana Red', weight = 1000, type = 'weapon', ammotype = nil, image = 'weapon_katana_r.png', unique = true, useable = true, description = 'Katana Red' },
weapon_katana_b             = { name = 'weapon_katana_b', label = 'Katana Blue', weight = 1000, type = 'weapon', ammotype = nil, image = 'weapon_katana_b.png', unique = true, useable = true, description = 'Katana Blue' },
weapon_katana_y             = { name = 'weapon_katana_y', label = 'Katana Yellow', weight = 1000, type = 'weapon', ammotype = nil, image = 'weapon_katana_y.png', unique = true, useable = true, description = 'Katana Yellow' },
weapon_katana_g             = { name = 'weapon_katana_g', label = 'Katana Grey', weight = 1000, type = 'weapon', ammotype = nil, image = 'weapon_katana_g.png', unique = true, useable = true, description = 'Katana Grey' },
```

**QB Inventory  (Copy Paste This At The End Of Your `weapons.lua` Inside** `qb-core`**)**&#x20;

```
[`weapon_katana_r`] 				 = {['name'] = 'weapon_katana_r', 		['label'] = 'Katana Red', 				['weapontype'] = 'Melee',	['ammotype'] = nil,	['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`weapon_katana_b`] 				 = {['name'] = 'weapon_katana_b', 		['label'] = 'Katana Blue', 	                        ['weapontype'] = 'Melee',	['ammotype'] = nil,	['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`weapon_katana_y`] 				 = {['name'] = 'weapon_katana_y', 		['label'] = 'Katana Yellow', 				['weapontype'] = 'Melee',	['ammotype'] = nil,	['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
[`weapon_katana_g`] 				 = {['name'] = 'weapon_katana_g', 		['label'] = 'Katana Grey', 				['weapontype'] = 'Melee',	['ammotype'] = nil,	['damagereason'] = 'Knifed / Stabbed / Eviscerated'},
```

If you're using `qb-weapons`, add the four katana weapons to `WeapDraw Table`.

```
'weapon_katana_r',
'weapon_katana_b',
'weapon_katana_y',
'weapon_katana_g',
```

If you're using `qb-weapons`, add the four katana weapons to `Durability Multiplayer Table`.

```
['weapon_katana_r']               = 0.15,
['weapon_katana_b']               = 0.15,
['weapon_katana_y']               = 0.15,
['weapon_katana_g']               = 0.15,
```

If you're using `qb-smallresources`, add the four katana weapons to `Weapodrop.lua`.

```
`PICKUP_katana`,
```

**You can also edit the it to adapt to you custom inventory script, you can also use these exports on your custom inventory to show when a player is holding the item.**

\
**For Further Support Join Our** [**Discord**](https://discord.com/invite/PeDmabgehk)**!**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://corelogic-development.gitbook.io/corelogic-development/scripts/custom-katana/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
