# Prison Break & Visit

####

#### ⚡ 1. Cutting Power Panels

* **Requirement:** `prison_cutter` (wire cutter)
* **Mechanic:**
  * Players must locate and interact with **designated electric panels** around the prison.
  * A **mini-game** is triggered, requiring skill to complete successfully.
  * If the player **fails the mini-game**, the escape attempt is aborted and the panel becomes unusable for a while.
* **Condition:**

  * The action can **only be performed during a specific in-game time window**, defined in the config:

    ```lua

    FRKN.General.escapeControl.electricCut
    ```
  * This usually corresponds to **nighttime hours**.
  *

  ```
  <figure><img src="../../.gitbook/assets/image (89).png" alt=""><figcaption></figcaption></figure>
  ```

***

#### 🪓 2. Digging the Tunnel

* **Requirement:** `prison_shovel` (shovel)
* **Mechanic:**
  * Once the power is cut, players can go to the **tunnel dig location**.
  * A **digging mini-game** begins, simulating physical effort and time progression.
  * While digging, a **dirt pile prop** is spawned, which disappears once the tunnel is completed.
* **Condition:**
  * Tunnel digging is only allowed when **electricity is disabled** and the **in-game time** is within the allowed window:

    ```lua
    electricControl() && FRKN.General.escapeControl.digTunnel
    ```
* **Escape:**

  * After successful digging, players reach the **escape point** and are **removed from prison**, completing their breakout.
  *

  ```
  <figure><img src="../../.gitbook/assets/image (90).png" alt=""><figcaption></figcaption></figure>
  ```

### 📞 Visitation System

The script includes a **visitation feature**, allowing players to schedule and attend visits with inmates using in-game prison phones.

***

#### 🧩 Interaction

* Players interact with **phone props** placed inside the prison.
* The system is integrated with **`qb-target`** or **`ox-target`**.
* Each phone includes a target option labeled *"Visit a Prisoner"* (or customized).

***

#### 📬 Visit Request

* After interacting with a phone, players are shown a **list of current inmates**.
* The visiting player selects an inmate to **send a visit request**.

***

#### ✅ Visit Approval

* The selected inmate receives a **request prompt** and can **accept or reject** the visit.

***

#### ✨ Teleportation

* If the request is accepted:

  * Both the inmate and the visitor are **teleported to a designated visitation room**.
  * This room is configured in the script and includes controlled camera angles and a waiting area.
  *

  ```
  <figure><img src="../../.gitbook/assets/image (91).png" alt=""><figcaption></figcaption></figure>
  ```


---

# 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://docs.0resmon.org/0resmon/frkn-resources/frkn-prison/prison-break-and-visit.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.
