> For the complete documentation index, see [llms.txt](https://docs.t1ger.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.t1ger.net/resources/t1ger-money-wash/guides/police.md).

# Police

How officers respond: alerts, raids, and inspecting and seizing flagged deposits.

Laundering only works as a risk if the police can act on it. This guide covers what officers get: alerts that point them to suspicious businesses and deposits, raids that seize a business's exposed cash, and inspections of flagged ATM deposits. It also lists the rules a server owner can set.

## Who Counts as Police

Police access is given by job. By default, the `police` and `sheriff` jobs have it, and the list is set in `Config.Police.Jobs`. Each action also has a minimum grade, and can require the officer to be on duty:

| Action                                 | Minimum grade | On duty required |
| -------------------------------------- | ------------- | ---------------- |
| Raid a business                        | 1             | Yes              |
| Inspect and seize flagged ATM deposits | 2             | Yes              |

These are the defaults, and each one can be changed in `Config.Police`.

## Alerts

Alerts tell officers where something suspicious is happening. They come from two places: the hidden roll after a launder at a suspicious business (see the [Suspicion](https://docs.t1ger.net/resources/t1ger-money-wash/guides/suspicion.md) guide), and flagged deposits at an ATM (see the [Cash Out](https://docs.t1ger.net/resources/t1ger-money-wash/guides/cash-out.md) guide). Every alert shows a notification with the street name and puts a blip on the map. By default the blip stays for 30 seconds, and the serious ones flash.

| Alert             | When it's sent                                       | Blip name            |
| ----------------- | ---------------------------------------------------- | -------------------- |
| **Moderate**      | A launder at a business with Moderate suspicion      | Unusual activity     |
| **High**          | A launder at a business with High suspicion          | Suspicious business  |
| **Critical**      | A launder at a business with Critical suspicion      | High-risk laundering |
| **Max**           | A launder at a business with suspicion at 100        | Exposed laundering   |
| **Deposit**       | An ATM deposit is flagged                            | Flagged ATM deposit  |
| **StolenDeposit** | A bag is deposited by someone who didn't withdraw it | Stolen cash deposit  |

Alerts reach every player with a police job, whether they're on duty or not. Each type can be switched on or off, and its blip changed, in `Config.Police.Alerts`. The texts are in the locale file, under `notification.police_alert`.

Alerts go through two functions that you can replace with your own dispatch system: `SendPoliceNotification` in `server/customize.lua` and `ShowPoliceAlert` in `client/customize.lua`.

## Raiding a Business

A raid seizes the **exposed** cash in a business's Safe. Covered cash is protected and can't be taken. See the [Laundering](https://docs.t1ger.net/resources/t1ger-money-wash/guides/laundering.md) guide.

1. Go to the business and use the target option **Raid Business** on its handler NPC. It only shows if you're police with the right grade, on duty if required, and not in a vehicle.
2. An evidence collection screen opens with the business's open Safe. Drag the cash into the evidence bag. The amount is split into piles (10 by default).
3. Slide to secure the evidence. The exposed cash is seized, and the money is gone.

You can't raid your own business, and nothing happens if there's no exposed cash to take.

**What the owner sees:** the owner is told the police are raiding the business, and while the raid runs, they can't use the Safe, launder, transfer or abandon the business. When it's done, they're told how much was seized.

**What can end a raid early:** the raid is called off, with no cooldown and nothing seized, if:

| Situation                          | What happens                                                        |
| ---------------------------------- | ------------------------------------------------------------------- |
| You close the screen               | The raid is called off.                                             |
| You take too long                  | The raid is called off after the time limit (5 minutes by default). |
| You move too far from the business | The raid is called off.                                             |
| You go down                        | The raid is called off.                                             |
| You disconnect                     | The raid is called off, and the owner is told it has ended.         |

## After a Raid

* **The Safe:** the exposed cash is emptied. Covered cash stays.
* **Suspicion:** it drops to a set level if it's higher (50 by default), and it's never raised. A server owner can also make it fall by a percentage instead, in `Config.Police.Raid.SuspicionAfter`.
* **Cooldown:** the same business can't be raided again for a while (60 minutes by default). It's kept in memory, so a restart clears it.

## Inspecting Flagged Deposits

Officers can also stop a flagged deposit before it clears. At an ATM, use **Check flagged transactions** to see the flagged deposits that are still processing, then seize one. It's covered in the [Cash Out](https://docs.t1ger.net/resources/t1ger-money-wash/guides/cash-out.md) guide.

## If an Action Is Refused

| Message                                | Why it happens                           |
| -------------------------------------- | ---------------------------------------- |
| You are not allowed to raid businesses | Your job or grade isn't allowed to raid. |
| You are not on duty for this action    | You need to be on duty.                  |
| You cannot raid your own business      | Officers can't raid a business they own. |
| This business was raided recently      | The cooldown is still running.           |
| There is nothing to seize here         | The Safe holds no exposed cash.          |
| Police are raiding this business       | Another officer is already raiding it.   |
| You are already raiding a business     | You can only run one raid at a time.     |
| Raids are disabled                     | The server owner turned raids off.       |
