[Server Hosting] Personal Storage Configuration - salutesh/DayZ-Expansion-Scripts GitHub Wiki

Return to the summary


You can name a personal storage configuration file to what ever you want as long as it has the .json file extention and is placed in the mpmissions\MISSIONNAME.MAPNAME\storage_x\expansion\personalstorage folder it will get loaded by the personal storage system.

Configuration Parameters:

"ConfigVersion"

Integer.

Current config file version. NEVER CHANGE THIS UNLESS YOU KNOW WHAT YOU ARE DOING!

"StorageID"

Integer.

Unique storage ID for this personal storage. Never use the same ID twice!

"ClassName"

String.

Class name of the object that will be used to spawn the personal storageobject.

  • Need to inherit from "ExpansionPersonalStorageBase".

"DisplayName"

String.

Display name that will be used in the personal storage menu or when the name-tags mod loaded and enabled next to the personal storage mod.

"DisplayIcon"

String.

Display icon that will be used in the personal storage menu or when the name-tags mod loaded and enabled next to the personal storage mod. Can be a ExpansionIcon or any valid image path.

"Position"

Vector.

World position where the personal storage object will be created at.

"m_Orientation"

Vector.

World orientation where the personal storage object will be facing at.

"QuestID"

Integer.

If the player need to unlock this storage by completing a certain expansion quest mod quest then add the quest ID here.

"Reputation"

Integer.

If the player need to have a certain reputation to use this storage add the min. value here.

"Faction"

String.

If the player need to be a member of a certain faction add the faction name here.

"IsGlobalStorage"

Bolean.

If this storage should display all items from the player he deposited in any stroage in the world then set this to 1.


Example configuration JSON file:

{
    "ConfigVersion": 2,
    "StorageID": 0,
    "ClassName": "ExpansionPersonalStorageChest",
    "DisplayName": "Jalovisco - Personal Storage",
    "DisplayIcon": "Backpack",
    "Position": [
        8619.3095703125,
        14.788700103759766,
        10518.400390625
    ],
    "Orientation": [
        -54.31999969482422,
        0.0,
        0.0
    ],
    "QuestID": -1,
    "Reputation": 0,
    "Faction": "Survivors",
    "IsGlobalStorage": 1
}