# 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="https://3505378470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmOhVROw9E3kpmAG3JYVe%2Fuploads%2F5NXFWuoYrF94Ylk9N72s%2Fimage.png?alt=media&#x26;token=2dd429ff-1b06-486a-9e22-f5f58d1bfa03" 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="https://3505378470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmOhVROw9E3kpmAG3JYVe%2Fuploads%2FFHPkNlI6QIdsmrqyuQv2%2Fimage.png?alt=media&#x26;token=0056a50f-eb41-41b8-ac77-adb13e752ee9" 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="https://3505378470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmOhVROw9E3kpmAG3JYVe%2Fuploads%2Fsdtb3xi9qvhZ8irIZxpg%2Fimage.png?alt=media&#x26;token=b019f5a7-b3e3-406f-8626-36e39a0eacd1" alt=""><figcaption></figcaption></figure>
