Skip to content

Stash ​

Description ​

Stash places searchable containers at randomly selected configured locations. Inspecting one opens its inventory and generates loot. When the refill delay ends, the container clears remaining items and can be searched again. Use the configured event to place functioning stashes.

Configuration ​

Default configuration ​

Stash.json
json
{
    "m_Enable": 0,
    "m_Logging": 1,
    "m_Stashs": [
        {
            "m_Name": "stash-01",
            "m_Container": "AC_Stash_Box",
            "m_TimeInspect": 10,
            "m_ReloadInspect": 600,
            "m_RewardPools": [
                "supplies"
            ],
            "m_Quantity": 1,
            "m_Positions": [
                {
                    "m_Position": {
                        "m_X": 4767.1142578125,
                        "m_Y": 339.28759765625,
                        "m_Z": 10374.0400390625
                    },
                    "m_Orientation": {
                        "m_Yaw": 0.0,
                        "m_Pitch": 0.0,
                        "m_Roll": 0.0
                    }
                },
                {
                    "m_Position": {
                        "m_X": 4760.412109375,
                        "m_Y": 339.2930908203125,
                        "m_Z": 10370.296875
                    },
                    "m_Orientation": {
                        "m_Yaw": 0.0,
                        "m_Pitch": 0.0,
                        "m_Roll": 0.0
                    }
                },
                {
                    "m_Position": {
                        "m_X": 4750.93359375,
                        "m_Y": 339.2930908203125,
                        "m_Z": 10364.6015625
                    },
                    "m_Orientation": {
                        "m_Yaw": 0.0,
                        "m_Pitch": 0.0,
                        "m_Roll": 0.0
                    }
                }
            ]
        },
        {
            "m_Name": "stash-02",
            "m_Container": "AC_Stash_Box_Multi",
            "m_TimeInspect": 10,
            "m_ReloadInspect": 600,
            "m_RewardPools": [],
            "m_Quantity": 1,
            "m_Positions": [
                {
                    "m_Position": {
                        "m_X": 4770.08642578125,
                        "m_Y": 339.0552978515625,
                        "m_Z": 10368.599609375
                    },
                    "m_Orientation": {
                        "m_Yaw": 0.0,
                        "m_Pitch": 0.0,
                        "m_Roll": 0.0
                    }
                },
                {
                    "m_Position": {
                        "m_X": 4759.28173828125,
                        "m_Y": 339.06304931640627,
                        "m_Z": 10357.615234375
                    },
                    "m_Orientation": {
                        "m_Yaw": 0.0,
                        "m_Pitch": 0.0,
                        "m_Roll": 0.0
                    }
                }
            ]
        },
        {
            "m_Name": "stash-03",
            "m_Container": "AC_Stash_WoodenCrate_3x",
            "m_TimeInspect": 10,
            "m_ReloadInspect": 600,
            "m_RewardPools": [
                "weapons"
            ],
            "m_Quantity": 1,
            "m_Positions": [
                {
                    "m_Position": {
                        "m_X": 4774.0908203125,
                        "m_Y": 339.70062255859377,
                        "m_Z": 10353.099609375
                    },
                    "m_Orientation": {
                        "m_Yaw": 0.0,
                        "m_Pitch": 0.0,
                        "m_Roll": 0.0
                    }
                },
                {
                    "m_Position": {
                        "m_X": 4766.435546875,
                        "m_Y": 339.7008361816406,
                        "m_Z": 10347.1650390625
                    },
                    "m_Orientation": {
                        "m_Yaw": 0.0,
                        "m_Pitch": 0.0,
                        "m_Roll": 0.0
                    }
                }
            ]
        }
    ],
    "m_RewardPools": [
        {
            "m_Name": "supplies",
            "m_QuantityMax": 10,
            "m_Items": [
                {
                    "m_Class": "Apple",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 2,
                    "m_Attachments": []
                },
                {
                    "m_Class": "BandageDressing",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 2,
                    "m_Attachments": []
                },
                {
                    "m_Class": "WaterBottle",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 3,
                    "m_Attachments": []
                },
                {
                    "m_Class": "VitaminBottle",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 3,
                    "m_Attachments": []
                },
                {
                    "m_Class": "Tomato",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 2,
                    "m_Attachments": []
                },
                {
                    "m_Class": "PainkillerTablets",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 2,
                    "m_Attachments": []
                },
                {
                    "m_Class": "FirstAidKit",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 2,
                    "m_Attachments": []
                },
                {
                    "m_Class": "Rice",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 3,
                    "m_Attachments": []
                },
                {
                    "m_Class": "CharcoalTablets",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 2,
                    "m_Attachments": []
                },
                {
                    "m_Class": "SpaghettiCan",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 2,
                    "m_Attachments": []
                },
                {
                    "m_Class": "Canteen",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 4,
                    "m_Attachments": []
                },
                {
                    "m_Class": "TetracyclineAntibiotics",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 2,
                    "m_Attachments": []
                },
                {
                    "m_Class": "BakedBeansCan",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 2,
                    "m_Attachments": []
                },
                {
                    "m_Class": "Heatpack",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 2,
                    "m_Attachments": []
                },
                {
                    "m_Class": "TacticalBaconCan",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 1,
                    "m_Attachments": []
                }
            ]
        },
        {
            "m_Name": "weapons",
            "m_QuantityMax": 10,
            "m_Items": [
                {
                    "m_Class": "Battery9V",
                    "m_Chance": 90,
                    "m_StackMin": 75,
                    "m_StackMax": 100,
                    "m_QuantityMax": 1,
                    "m_Attachments": []
                },
                {
                    "m_Class": "M68Optic",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 1,
                    "m_Attachments": []
                },
                {
                    "m_Class": "M68Optic",
                    "m_Chance": 25,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 1,
                    "m_Attachments": [
                        "Battery9V"
                    ]
                },
                {
                    "m_Class": "Mag_STANAG_30Rnd",
                    "m_Chance": 75,
                    "m_StackMin": 50,
                    "m_StackMax": 100,
                    "m_QuantityMax": 3,
                    "m_Attachments": []
                },
                {
                    "m_Class": "Mag_AKM_30Rnd",
                    "m_Chance": 75,
                    "m_StackMin": 50,
                    "m_StackMax": 100,
                    "m_QuantityMax": 3,
                    "m_Attachments": []
                },
                {
                    "m_Class": "Mag_FAL_20Rnd",
                    "m_Chance": 75,
                    "m_StackMin": 50,
                    "m_StackMax": 100,
                    "m_QuantityMax": 3,
                    "m_Attachments": []
                },
                {
                    "m_Class": "M4_RISHndgrd",
                    "m_Chance": 75,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 5,
                    "m_Attachments": []
                },
                {
                    "m_Class": "AK_WoodHndgrd",
                    "m_Chance": 75,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 5,
                    "m_Attachments": []
                },
                {
                    "m_Class": "M4_OEBttstck",
                    "m_Chance": 75,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 5,
                    "m_Attachments": []
                },
                {
                    "m_Class": "AK_WoodBttstck",
                    "m_Chance": 75,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 5,
                    "m_Attachments": []
                },
                {
                    "m_Class": "Fal_FoldingBttstck",
                    "m_Chance": 75,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 5,
                    "m_Attachments": []
                },
                {
                    "m_Class": "M4_Suppressor",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 5,
                    "m_Attachments": []
                },
                {
                    "m_Class": "AK_Suppressor",
                    "m_Chance": 50,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 5,
                    "m_Attachments": []
                },
                {
                    "m_Class": "M4A1",
                    "m_Chance": 40,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 1,
                    "m_Attachments": []
                },
                {
                    "m_Class": "AKM",
                    "m_Chance": 30,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 1,
                    "m_Attachments": []
                },
                {
                    "m_Class": "FAL",
                    "m_Chance": 20,
                    "m_StackMin": 0,
                    "m_StackMax": 100,
                    "m_QuantityMax": 1,
                    "m_Attachments": []
                }
            ]
        }
    ]
}

Options ​

OptionTypeDescription
m_EnableboolWith 1, enables the module. With 0, disables it.
m_LoggingboolWith 1, logs stash creation and reward draws. With 0, skips those records.
m_Stashsarray<object>Stash groups, locations and timing.
m_RewardPoolsarray<object>Named reward pools.

m_Stashs[] ​

OptionTypeDescription
m_NamestringGroup name used in logs.
m_ContainerstringExact stash container class from the Types section.
m_QuantityintNumber of containers to place for the group, limited by valid locations.
m_TimeInspectintSeconds needed to inspect the container.
m_ReloadInspectintSeconds before the container clears and can be inspected again.
m_Positionsarray<object>Possible positions and orientations.
m_RewardPoolsarray<string>Names of candidate reward pools. If no name is chosen or found, the module picks from all configured pools.

m_Stashs[].m_Positions[] ​

OptionTypeDescription
m_PositionobjectWorld coordinates.
m_OrientationobjectObject rotation.

m_Stashs[].m_Positions[].m_Position ​

OptionTypeDescription
m_XfloatWorld X coordinate in metres.
m_YfloatElevation in metres.
m_ZfloatWorld Z coordinate in metres.

m_Stashs[].m_Positions[].m_Orientation ​

OptionTypeDescription
m_YawfloatYaw in degrees.
m_PitchfloatPitch in degrees.
m_RollfloatRoll in degrees.

m_RewardPools[] ​

OptionTypeDescription
m_NamestringExact pool name used in stash groups.
m_QuantityMaxintLimit on item instances per inspection.
m_Itemsarray<object>Reward items.

m_RewardPools[].m_Items[] ​

OptionTypeDescription
m_ClassstringExact reward item class.
m_ChanceintChance per roll as a percentage.
m_QuantityMaxintMaximum number of instances of this entry per reward draw.
m_StackMinintMinimum percentage of the item’s maximum quantity.
m_StackMaxintMaximum percentage of the item’s maximum quantity.
m_Attachmentsarray<string>Item attachment classes.

Types ​

types.xml
xml
<type name="AC_Stash_WoodenCase">
    <lifetime>3888000</lifetime>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>
<type name="AC_Stash_Box">
    <lifetime>3888000</lifetime>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>
<type name="AC_Stash_Box_Multi">
    <lifetime>3888000</lifetime>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>
<type name="AC_Stash_WoodenCrate">
    <lifetime>3888000</lifetime>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>
<type name="AC_Stash_WoodenCrate_3x">
    <lifetime>3888000</lifetime>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>
<type name="AC_Stash_WoodenCrate_5x">
    <lifetime>3888000</lifetime>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>

Controls ​

ControlAction
InspectHold the normal interaction control on a closed stash until inspection completes. No tool is required.

Released under the MIT License.