# 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;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dayz.foxapo.com/mods/crdtn-locked-doors/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
