Adding items to the traders is all done within the mission files config.cpp file.

For this example, we will be adding CUP_arifle_AK107, CUP_arifle_AK107_GL and CUP_arifle_AK74 to the traders.

There are 2 sections you need to look for
- class CfgExileArsenal
- class CfgTraderCategories

**class CfgExileArsenal**
In this section, you need to list every single item you want in the traders along with the item quality and price.

1. Search for Exile_Uniform_BambiOverall and replace the whole line with the following.
```
class Exile_Uniform_BambiOverall { quality = 1; price = 1; sellPrice = 1; };

///////////////////////////////////////////////////////////////////////////////
// Mod Items
///////////////////////////////////////////////////////////////////////////////
class ITEM_CLASSNAME { quality = 1; price = 20; };
```
2. Replace the ITEM_CLASSNAME with the class name of the item you want to add. EG CUP_arifle_AK107. Also, set the quality and price you want the item to have.
3. Add a new line for each additional item you want to add and set the ITEM_CLASSNAME, quality and price.
```
///////////////////////////////////////////////////////////////////////////////
// Mod Items
///////////////////////////////////////////////////////////////////////////////
class CUP_arifle_AK107 { quality = 1; price = 20; };
class CUP_arifle_AK107_GL { quality = 1; price = 20; };
class CUP_arifle_AK74 { quality = 1; price = 20; };
```

 

**class CfgTraderCategories**
This section controls what category the item will be displayed in.
As we are using an assault rifle in the example we need to add it to the ```class AssaultRifles``` category.
If you are adding a different item you need to make sure you add it to the correct category.
Follow these steps.
1. Search for "class AssaultRifles"
You should now see this
```
class AssaultRifles
{
name = "Assault Rifles";
icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
items[] =
{
"arifle_Katiba_C_F",
"arifle_Katiba_F",
```
For each item you want to add to the category add a new line with the ITEM_CLASSNAME.
```
class AssaultRifles
{
name = "Assault Rifles";
icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
items[] =
{
"arifle_Katiba_C_F",
"arifle_Katiba_F",
"CUP_arifle_AK107",
"CUP_arifle_AK107_GL",
"CUP_arifle_AK74",
```

Was this answer helpful? 29 Users Found This Useful (85 Votes)