# 0R Hacking Mini Game

## Adapting with Your Scripts

You can adapt your scripts by following this code example.

```lua
local minigame3started = false 
RegisterCommand("testminigame3", function()
    if Config.Animation then
        TriggerEvent("0resmon:anim:Hacking")
    end

    Wait(7500)

    if minigame3started == false then 
        minigame3started = true 
        local minigame = exports['0r-hackingminigame']:DoAllOfThem()
        if minigame then
            minigame3started = false 
            lib.notify(
                {
                    title = "Minigames",
                    description = "You have successfully completed the minigames.",
                    type = "success",
                    position = "center-right",
                    duration = 7500
                }
            )
        else
            minigame3started = false 
            lib.notify(
                {
                    title = "Minigames",
                    description = "You have failed the minigames.",
                    type = "error",
                    position = "center-right",
                    duration = 7500
                }
            )
        end
    else 
        SendNUIMessage({
            justopen=true,
        })
        SetNuiFocus(true, true)
    end 
end)
```


---

# 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://docs.0resmon.org/0resmon/0r-resources/0r-carplay-1.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.
