Skip to content

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.
text
<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.
text
<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.