[Server Hosting] P2P Market Trader Configuration - salutesh/DayZ-Expansion-Scripts GitHub Wiki
You can name a p2p market trader 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\p2pmarket folder it will get loaded by the personal storage system.
Configuration Parameters:
"m_Version"
Integer.
Current config file version. NEVER CHANGE THIS UNLESS YOU KNOW WHAT YOU ARE DOING!
"m_TraderID"
Integer.
Unique trader ID for this trader. Never use the same ID twice!
"m_ClassName"
String.
Class name of the trader object that will be used to spawn the trader object.
- Need to inherit from "ExpansionP2PMarketTraderNPCAI" when a AI NPC.
- Need to inherit from "ExpansionP2PMarketTraderNPC" when a normal NPC.
- Need to inherit from "ExpansionP2PMarketTraderStatic" when a static object.
"m_Position"
Vector.
World position where the p2p market trader object will be created at.
"m_Orientation"
Vector.
World orientation where the p2p market trader object will be facing at.
"m_LoadoutFile"
String.
Loadout file for the trader NPC if it is a AI or normal NPC.
"m_VehicleSpawnPosition"
Vector.
World positions where the p2p market will spawn land vehicles at when purchased.
"m_WatercraftSpawnPosition"
Vector.
World positions where the p2p market will spawn watercrafts at when purchased.
"m_AircraftSpawnPosition"
Vector.
World positions where the p2p market will spawn aircrafts at when purchased.
"m_DisplayName"
String.
Display name that will be used in the p2p market menu or when the name-tags mod loaded and enabled next to the p2p market mod.
"m_DisplayIcon"
String.
Display icon that will be used in the p2p market menu or when the name-tags mod loaded and enabled next to the p2p market mod. Can be a ExpansionIcon or any valid image path.
"m_Faction"
String.
Faction for the NPC if it is a AI.
"m_IsGlobalTrader"
Bolean.
If this trader should display all sale listings from all P2P market traders in the world then set this to 1.
Example configuration JSON file:
{
"m_Version": 4,
"m_TraderID": -1,
"m_ClassName": "ExpansionP2PTraderAIJudy",
"m_Position": [
8551.580078125,
15.703399658203125,
10529.900390625
],
"m_Orientation": [
120.0,
0.0,
0.0
],
"m_LoadoutFile": "SurvivorLoadout",
"m_VehicleSpawnPosition": [
3741.679931640625,
402.8330078125,
5996.14013671875
],
"m_WatercraftSpawnPosition": [
0.0,
0.0,
0.0
],
"m_AircraftSpawnPosition": [
0.0,
0.0,
0.0
],
"m_DisplayName": "Unknown",
"m_DisplayIcon": "Deliver",
"m_Faction": "InvincibleObservers",
"m_IsGlobalTrader": 0
}