[Server Hosting] Adding a new Category to the market - CommanderBeelo/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": 9,
    "DisplayName": "My Category Name Players Will See",
    "Icon": "Deliver",
    "Color": "FBFCFEFF",
    "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

"Arrow"
"Error"
"Airdrop"
"Car"
"Deliver"
"Radiation"
"Trader"
"Water 1"
"Water 2"
"Infected 1"
"Infected 2"
"Skull 1"
"Skull 2"
"Skull 3"
"Helicopter"
"Base"
"Boat"
"Fishing"
"Territory"
"Bear"
"Claw"
"Drip"
"Ear"
"Eye"
"Fireplace"
"Heart"
"Hook"
"Info"
"Knife"
"Map"
"Marker"
"Map Marker"
"Orientation"
"Menu"
"Pen"
"Persona"
"Pill"
"Questionmark"
"Moon"
"Star"
"Sun"
"Ellipse"
"Tent"
"Thermometer"
"Book 1"
"Book 2"
"Note"
"Grab"
"Open Hand"
"Radio"
"Shield"
"Snow"
"Group"
"Vehicle Crash"
"Animal Skull"
"Apple"
"Apple Core"
"Arrows"
"Axe"
"Backpack"
"Bandage"
"Batteries"
"Berries"
"Kitchen Knife Big"
"Binoculars"
"Bolt"
"Bonfire"
"Bottle"
"Bow"
"Broken Lighter"
"Can Of Beans Big"
"Can Of Beans Small"
"Car Keys"
"Carrot"
"Chain Saw"
"Chicken"
"Chocolate"
"Cigarets"
"Cloth"
"Compass"
"Corn"
"Crowbar"
"Cow"
"Dinosaur Skull"
"Dry Wood"
"Eatable Flowers"
"Electrical Tape"
"Empty Can"
"Fish"
"Flare"
"Flare Gun"
"Flare Gun Ammo"
"Flashlight"
"Fox"
"Frying Pan"
"Gas"
"Gas Mask"
"Golf Club"
"Goose"
"Grenade"
"Guitar"
"Gun"
"Gun Bullets"
"Hammer"
"Herbal Medicine"
"Home Made Grenade"
"Human Skull"
"Insect"
"Kitchen Knife"
"Ladder"
"Lantern"
"Lighter"
"Machette"
"Paper Map"
"Matches"
"Medic Box"
"Mushrooms"
"Nails"
"Paper"
"Pills"
"Pipe Wrench"
"Powder"
"Pumpkin"
"Rabbit"
"Raccon"
"Radio"
"Rat"
"Rock 1"
"Rock 2"
"Rope"
"Saw"
"Scrap Metal"
"Screwdriver"
"Shotgun"
"Shotgun Bullets"
"Shovel"
"Soda"
"Tent Small"
"Walkie Talkie"
"Water Jug"
"Wild Pork"
"Worms"