Skip to content

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.

    text
    <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.
    text
    <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.
    text
    <figure><img src="../../.gitbook/assets/image (91).png" alt=""><figcaption></figcaption></figure>