> 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/fingerprint.md).

# Fingerprint

<figure><img src="https://1591991476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPIxZnZDGzl5v0n1I2OKQ%2Fuploads%2FW4E1fMKryAWzChOFSGvc%2Fimage.png?alt=media&amp;token=2f11d070-1376-4dce-8cd3-795573c88ee8" alt=""><figcaption></figcaption></figure>

A partial fingerprint tape is shown on the left. Several candidate prints are displayed on the right scanner. The player must drag the tape that matches the target print onto the scanner to win.

## Options

| Option     | Type   | Default | Description                                                                       |
| ---------- | ------ | ------- | --------------------------------------------------------------------------------- |
| `time`     | number | `20`    | Time limit in seconds.                                                            |
| `mistakes` | number | `2`     | Number of incorrect drag attempts allowed before fail. `0` = one-shot, no margin. |

## Example

```lua
-- Forensics interaction, some margin for error:
exports['jiffy-minigames']:Fingerprint({
    time     = 25,
    mistakes = 2,
}, function(success)
    if success then
        TriggerServerEvent('evidence:server:match', suspectId)
    end
end)

-- High-stakes, zero margin:
local success = exports['jiffy-minigames']:Fingerprint({
    time     = 15,
    mistakes = 0,
})
```

## Notes

* The prints are procedurally generated each run — no two games look identical.
* `difficulty` does not directly configure Fingerprint beyond what `time` and `mistakes` already cover. Set those directly.
