# Installation

### ⚙️ Initial Setup

Follow these steps to install and configure the `frkn-prison` script on your server:

#### 📁 1. File Placement

Place the `frkn-prison 0r-npcdialog frkn-tunnel` der inside your server’s `resources` directory:

Prison Map : <https://drive.google.com/file/d/1D4QBOer3dfzLh1K8LsUxzj724Gg2jynK/view?usp=sharing>

PolyZone : <https://github.com/mkafrin/PolyZone>

```
resources/[your-category]/frkn-prison
resources/[your-category]/0r-npcdialog
resources/[your-category]/frkn-tunnel
resources/[your-category]/PolyZone
resources/[your-category]/[prison_map]
```

#### 📄 2. Start the Resource

Add the following line to your `server.cfg` to ensure the script starts with the server:

```cfg
ensure frkn-prison
ensure 0r-npcdialog
ensure frkn-tunnel
ensure PolyZone
ensure [prison_map]
```

#### 🛠 3. Configuration

Open the following files and adjust settings based on your server’s setup:

* `config.lua` → General script settings (target system, inventory, notifications, etc.)
* `job_config.lua` → Job-related definitions and task logic

Make sure to match inventory and target system values with the rest of your server (e.g. `"ox"`, `"qb"`).

#### 🧩 4. SQL Import

Import the provided SQL file into your database to ensure required items, metadata, and other dependencies are properly registered.

5. **Light Settings**

If you are using qb-weathersync, this code will be added to the client.

RegisterNetEvent(“frkn-prison:setBlackout”, function(state)\
blackout = state\
end)


---

# 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/installation.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.
