> For the complete documentation index, see [llms.txt](https://docs.0resmon.org/0resmon/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.0resmon.org/0resmon/frkn-resources/frkn-minigame-pack/xox-minigame.md).

# Xox Minigame

#### XOX Game Minigame Documentation

This documentation explains the basic usage and integration of the "XOX Game" minigame designed for FiveM.

#### What is the XOX Game?

The "XOX Game" is a pattern-matching minigame where players need to match symbols (X, O, and Δ) within a given time frame. The game involves a grid layout of different symbols, and the player must clear or match the grid correctly to succeed.

**Key Features:**

* **Timed Gameplay**: Players must complete the game within a defined time limit.
* **Symbol Matching**: Players interact with a grid of symbols (X, O, Δ) to complete the game.
* **Success/Failure Condition**: The game is successfully completed when the symbols are matched correctly within the time. Failure occurs if the time runs out or the symbols are incorrectly matched.

#### Export Usage

This minigame can be triggered and controlled using the following export function.

**Parameters:**

* **callback** (function): The function that is triggered when the game ends.
* **duration** (integer): The total time for the game (in seconds).
* **header** (string): The text displayed as the game’s title.

**Command Example:**

```lua
RegisterCommand("xoxtest", function()
    exports['frkn-sosgame']:xoxGame(function(success)
        if success then
            TriggerEvent("chatMessage", "SYSTEM", "success", "XOX Game completed!")
        else
            TriggerEvent("chatMessage", "SYSTEM", "error", "XOX Game failed!")
        end
    end, 30, "XOX Game")
end)
```

#### General Information

The XOX Game is designed to be integrated easily into FiveM projects. Players are required to match symbols within a set duration. The game can be initiated through commands and provides feedback based on success or failure.

To integrate the minigame into your project, simply call the `xoxGame` function using the export as shown above.

4o


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.0resmon.org/0resmon/frkn-resources/frkn-minigame-pack/xox-minigame.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
