[Server Hosting] Adding a new Category to the market - salutesh/DayZ-Expansion-Scripts GitHub Wiki

Return to the overview "The Market System"


To add a new category you will need to create and configure one json file per categories. please note, a category shouldn't have items from another category.

Go to DayZServer\ServerProfile (or config)\ExpansionMod\Market and create a file named MyCategory_Name.json.

In this file add the following lines:

{
    "m_Version": 12,
    "DisplayName": "My Category Name Players Will See",
    "Icon": "Deliver",
    "Color": "FBFCFEFF",
    "IsExchange": 0,
    "InitStockPercent": 75.0,
    "Items": [
        {
            "ClassName": "MyClassName",
            "MaxPriceThreshold": 30,
            "MinPriceThreshold": 15,
            "SellPricePercent": -1,
            "MaxStockThreshold": 250,
            "MinStockThreshold": 1,
            "QuantityPercent": -1,
            "SpawnAttachments": [
                "MyAttachment_Classname",
                "MyAttachment_Classname"
            ],
            "Variants": [
                "MyClassname_Variant",
                "MyClassname_Variant"
            ]
        }
    ]
}

Color

This is using hex color coding. You can use online hex color pickers to find quickly the desired color you want to use.

https://www.color-hex.com/

Icon

https://github.com/salutesh/DayZ-Expansion-Scripts/wiki/%5BServer-Hosting%5D-List-of-default-icon-names