> For the complete documentation index, see [llms.txt](https://jiffyjrdevelopment.gitbook.io/jiffyjrdevelopmentdocs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jiffyjrdevelopment.gitbook.io/jiffyjrdevelopmentdocs/jiffy-jr-development-docs/jiffy-minigames/games/wirecutting.md).

# Wirecutting

<figure><img src="https://1591991476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPIxZnZDGzl5v0n1I2OKQ%2Fuploads%2FOL2WngifcGD94myKLq8w%2Fimage.png?alt=media&amp;token=ff32b2c1-cf37-4e1b-9f60-9dcfbb5fa4b9" alt=""><figcaption></figcaption></figure>

A panel of colored wires is presented. A clue or indicator marks the correct wire. The player clicks to cut it. Repeat for the required number of rounds — each round reshuffles the wires.

## Options

| Option       | Type   | Default    | Description                                                |
| ------------ | ------ | ---------- | ---------------------------------------------------------- |
| `difficulty` | string | `'medium'` | Preset. Sets `rounds` and `time`.                          |
| `rounds`     | number | `3`        | Number of correct cuts required to win. Must be ≤ `wires`. |
| `time`       | number | `25`       | Total time limit in seconds (shared across all rounds).    |
| `wires`      | number | `5`        | Number of wires displayed per round (3–7).                 |

## Example

```lua
-- Standard bomb defusal:
exports['jiffy-minigames']:Wirecutting({
    difficulty = 'hard',
    rounds     = 4,
    wires      = 6,
}, function(success)
    if success then
        TriggerServerEvent('bomb:server:defuse')
    end
end)

-- Quick single cut for a simple trigger:
local success = exports['jiffy-minigames']:Wirecutting({
    rounds = 1,
    wires  = 4,
    time   = 15,
})
```

## Notes

* `rounds` must not exceed `wires` — there has to be at least one wire available per round.
* Increasing `wires` while keeping `rounds` fixed makes each choice harder (more wrong options).
