> For the complete documentation index, see [llms.txt](https://dayz.foxapo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dayz.foxapo.com/mods/crdtn-locked-doors/config.md).

# Config

<table data-full-width="true"><thead><tr><th width="259">Parameter</th><th width="427.6666666666667">Meaning</th><th>Values</th></tr></thead><tbody><tr><td>notificationIcon</td><td>Path to the icon used in the notification</td><td>string</td></tr><tr><td>sendNotificationToAll</td><td>Flag whether to send a notification to all players upon unlocking</td><td>1 / 0 in string format</td></tr><tr><td>isAlarmed</td><td>Flag whether to play alarm sound on the object. </td><td>1 / 0 in string format</td></tr><tr><td>actionText</td><td>Text showing on the contextual action tooltip when holding the key</td><td>string</td></tr><tr><td>notificationText</td><td>Actual text shown in the notification</td><td>string</td></tr><tr><td>sendNotificationToClient</td><td>Flag whether to send a notification to the client actor</td><td>1 / 0 in string format</td></tr><tr><td>notificationHeader</td><td>Text of the notification header</td><td>string</td></tr><tr><td>alarmSound</td><td>Sound set of the sound being played upon unlocking. If the isAlarmed is set to "1"</td><td>string</td></tr><tr><td>unlockTime</td><td>Duration of the unlocking process</td><td>integer value in string </td></tr></tbody></table>

## Keys

If you want to setup multiple keys for the doors, you can specify multiple class types of the keys.&#x20;

It's very important to inherit from class - `CRDTN_Key_Base`

<pre class="language-json"><code class="lang-json"><strong>{
</strong>    "m_DoorConfig": {
        "Land_Mil_Barracks4": [
            {
                "DoorIndex": 3,
                "BuildingPosition": [
                    -1,
                    -1,
                    -1
                ],
                "BuildingClassname": "Land_Mil_Barracks4",
                "KeyClassnames": [
                    "CRDTN_Key_Universal"
                ],
                "Data": {
                    "notificationIcon": "set:ccgui_enforce image:MapUserMarker",
                    "sendNotificationToAll": "0",
                    "isAlarmed": "1",
                    "actionText": "Unlock with key",
                    "notificationText": "Door unlocked",
                    "sendNotificationToClient": "0",
                    "notificationHeader": "ALERT",
                    "alarmSound": "CRDTN_Core_SoundSet_Sound_Alarm",
                    "unlockTime": "10"
                }
            }
        ]
    }
}
</code></pre>

This config file setup all the military buildings of type `Land_Mil_Barracks4` and its door on the index 3 to be locked. You can use only CRDTN\_Key\_Universal to unlock.&#x20;
