# TicTacToe / X and O

## <mark style="color:yellow;">**Overview**</mark>

A fun, fully configurable **Tic Tac Toe** experience for FiveM that supports both single-player (vs. a bot) and multiplayer matches. This script also includes a scoreboard for tracking the top players, optional notepad animations, and configurable invitation ranges.

## <mark style="color:yellow;">**Key Highlights**</mark>

* Single-player mode (face an AI/bot if no one’s around)
* Multiplayer mode (challenge nearby players within a set range)
* Leaderboard tracking (top X players by total wins)
* Optional animations (e.g., notepad + pencil props)
* Supports ESX/QBCore or auto-detection

**Short Description**

> “A simple yet engaging Tic Tac Toe game for FiveM—play solo or invite other players, earn wins, and climb the leaderboard!”

## <mark style="color:yellow;">**Preview Video**</mark>

{% embed url="<https://www.youtube.com/watch?t=20s&v=72Fufc8t6lU>" %}


---

# 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://risk-scripts.gitbook.io/risk-scripts/scripts/tictactoe-x-and-o.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.
