Summary:

Let’s take a look at the TraderPlusIDsConfig. That file is fairly easy to understand. But let’s go step by step to explain everything may need to know.


Purpose:

It is used for setting up each “Id” so TraderPlus can know which items each traders are trading, licenses required by the trader and the currencies accepted by the trader.


File explanations:


“Id”:

Integer variable used to define which id it should be. Once you choose a value, you need to add this id value to each trader npc that will contain the categories setup in this id. You can use any whole integer from 0-99.

"Categories":

That’s a string array where you’re going to define each category that can be traded by a trader ID**.**

Here’s an example.

I want to add the new category I’ve previously created in my TraderPlusPriceConfig.json called “Morty’s Weapons”. I’ll be adding this to my weapons trader.

{
	“Id”: 3,
	"Categories": [
		"Melee",
		"Sidearms",
		"Rifles",
		"Shotguns",
		"Submachine Guns",
		"Assault Rifles",
		"Sniper Rifles",
		"Grenades",
		“Morty’s Weapons”
	],
	"LicencesRequired": []
}

As you can see above, I’ve placed my new category at the bottom of the list of categories my trader Id 3 will show in the trader menu.

"LicencesRequired":