# How to add minigames

Adding new minigames is easy. Follow the procedure to add a new minigame:

1. Duplicate the file `missions_creator/client/minigames/_EXAMPLE_MINIGAME.lua`
2. Rename the file to your minigame name
3. Open the new file, remove the comments at the beginning and at the end of the file (so remove these symbols: `--[[` and `--]]`)
4. Change `YOUR_MINIGAME_NAME` to your minigame name
5. Edit the function to support your minigame, it must return true on success and false on failure. You can see the examples with `datacrack.lua`, `fingerprint.lua` and `memory_game.lua`
6. Save the file and restart the script. If you did everything correctly (especially implementing the minigame itself), you should see your minigame in the list of minigames in the script


---

# 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://documentation.jaksam-scripts.com/missions-creator/how-to-add-minigames.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.
