# Dice Game & Basketball Game & Notebook System

### 🎲 Dice Game

The prison system includes a **dice mini-game** that allows players to challenge each other and gamble with in-game money.

#### 🎮 How It Works

* Players can send dice game requests to other nearby players with a specified bet amount.
* Once accepted, a synchronized dice-rolling interface opens and both players take turns.
* The player with the higher dice result wins the round and receives the total wager.

#### 📘 Commands

* `/dicesend [target_id] [amount]`\
  Send a dice challenge to a nearby player with the given amount.\
  \&#xNAN;*Example: `/dicesend 5 100` sends a challenge to player ID 5 with a 100$ wager.*
* `/diceaccept`\
  Accept the incoming dice challenge.
* `/dicedeny`\
  Reject the incoming dice challenge.

#### 🧠 Notes

* The mini-game runs through a **custom NUI interface**.
* Dice roll outcomes and winner announcements are fully synced across clients.
* The system ensures fair and immersive interactions inside prison or any other configured location.
*

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

***

### 📝 Notebook Feature

Players can use a **notebook item** to take notes and track their escape plan or findings.

#### 📖 How It Works

* Players receive an item named `prison_notebook`.
* When used, a simple text-based UI is displayed, allowing the player to **write and save notes**.

#### ✨ Highlights

* Content is saved and linked to the player.
* Notes are persistent across sessions.
* Useful for roleplay, investigation, or coordination within the prison.
*

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

***

### 🏀 Basketball Mini-Game

Inside the prison yard, players can access a **basketball court** to relax and play with others.

#### 🏗 Setup

* Balls are spawned using a command defined in `FRKN.General.Commands` (default: `/basket`)
* The maximum number of balls that can exist simultaneously is defined by `FRKN.General.Limit` (default: `5`)

#### 🎯 Gameplay Features

* Pick up and dribble the ball
* Change dribbling style
* Shoot and drop the ball

This mini-game adds a fun and immersive recreational element to the prison experience.

<figure><img src="/files/BYym2sfEumzaTRqsZHLq" 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/dice-game-and-basketball-game-and-notebook-system.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.
