> ## Documentation Index
> Fetch the complete documentation index at: https://help.freakhosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Use CodeLocks vs. Combination Locks in DayZ

> Compare digital CodeLocks and combination locks on your DayZ server. Configure raid difficulty and learn the advantages of each base security option.

## Securing Your Survival Sanctuary

Protecting your gathered resources is a fundamental priority in the DayZ wasteland. While the vanilla 3-dial and 4-dial combination locks provide a basic level of protection, they are often considered tedious by players and are highly vulnerable to "brute-force" raiding - where a malicious actor manually cycles through every possible combination. By implementing the **CodeLock** modification, you introduce a modern, digital security layer that improves the user experience while significantly hardening your community's bases against unauthorized intrusion.

<CardGroup cols={2}>
  <Card title="Difficulty" icon="gauge-low">
    Beginner
  </Card>

  <Card title="Time" icon="clock">
    5 Minutes
  </Card>
</CardGroup>

***

## Technical Advantages

Transitioning to digital security provides several strategic improvements for both players and administrators.

<Tabs>
  <Tab title="Digital Interface">
    The CodeLock features a responsive numerical keypad. Entering a 4-digit PIN is significantly faster and more intuitive than the mechanical dial manipulation required by vanilla locks, especially during high-stress encounters.
  </Tab>

  <Tab title="Authorization Memory">
    Once a survivor successfully authorizes their PIN on a CodeLock, the system recognizes them on every return. This enables **Instant Entry**, allowing owners to open their gates with a single click without re-typing their code until they die or the lock is reset.
  </Tab>

  <Tab title="Enhanced Raid Defense">
    Unlike vanilla locks, CodeLocks are immune to manual guessing. Raiders must use specialized breaching tools or high-yield explosives (such as C4) to bypass the digital encryption, allowing administrators to precisely balance the "cost of raiding" on their server.
  </Tab>
</Tabs>

***

## Administrative Configuration

Once the mod is initialized on your FREAKHOSTING server, you can fine-tune its balance within the `/profiles/CodeLock/` directory.

* **Primary Path:** `Config.json`

<Steps>
  <Step title="Define Brute-Force Protection">
    Configure the number of incorrect attempts allowed before the lock enters a cooldown phase. This prevents automated script-based guessing.
  </Step>

  <Step title="Calibrate Raid Difficulty">
    Adjust the `RaidTime` variable to determine how many seconds are required to cut the lock using a hacksaw. For hardcore servers, we recommend setting this value extremely high to force the use of explosive raiding mechanics.
  </Step>

  <Step title="Manage Tent Security">
    Toggle the `CanAttachToTent` parameter. Enabling this provides solo survivors with a method to secure their mobile base camps, which is highly valued in roleplay communities.
  </Step>
</Steps>

***

<Note>
  ### Persistence & Server Wipes

  CodeLocks are tied directly to the world's object database. During a scheduled server wipe, ensure you maintain the `/profiles/CodeLock/` folder if you wish to preserve the master configuration while resetting player progress and base structures.
</Note>

***

<Note>
  ### Need Extra Help?

  If you encounter any issues, our support team is ready to assist:

  * **Live Chat:** Quick assistance via our website.
  * **Support Ticket:** [Open a Ticket](https://freakhosting.com/clientarea/submitticket.php)
  * **Discord:** [Join our Community](https://discord.gg/freakhosting)
  * **Email:** [support@freakhosting.com](mailto:support@freakhosting.com)
</Note>

<Tip>
  ### Save on Your Hosting

  Ready to get a new server? Use code **KB20** at checkout for **20% off** your first month!
</Tip>

***

<div align="center">
  **Last Updated:** January 2026 | **Security:** Protecting your loot.
</div>
