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

# Cash Out

How to get clean money out of the Safe and into your bank, and what can go wrong on the way.

Clean money in your Safe is not yet money in your pocket. To spend it, you take it out as a cash bag and deposit it at an ATM, and that's where the risk comes back: a deposit can be flagged, and the police can seize it before it clears. This guide follows the money from the Safe to your bank.

## The Journey

1. **Withdraw** clean money from the Safe as a cash bag.
2. **Carry** the bag to any ATM.
3. **Deposit** it and wait for it to clear.
4. **Get paid** into your bank, minus a tax, unless the police stop it first.

## Withdrawing From the Safe

1. Open the handler's menu and choose **Safe**, then **Withdraw Cash**.
2. Enter the amount. The menu shows how much you have in the Safe, split into covered and exposed funds.
3. Count the money in the cash counter. When you finish, the money leaves the Safe and you receive a cash bag.

**Covered money is taken first.** That leaves your exposed money in the Safe, where a raid can still reach it, and it means the part of a bag that is exposed is what's left over after the covered money is used. See the [Laundering](https://docs.t1ger.net/resources/t1ger-money-wash/guides/laundering.md) guide.

A business can only have so much money out in uncashed bags at a time. By default, the limit is the business's cycle allowance, and bags older than 24 hours no longer count towards it, so a lost or thrown-away bag can't block you forever. If you reach the limit, deposit your bags first. The limit can be changed or switched off in `Config.Withdraw`.

If you can't carry the bag, the withdrawal is undone and the money goes back to the Safe, so nothing is lost.

## The Cash Bag

The bag is an item, `t1ger_cashbag` by default, and it shows its amount. Each one is unique, with its own serial number, and it belongs to the player who withdrew it. Whoever carries the bag can deposit it, and that matters, as you'll see below.

## Depositing at an ATM

Walk up to any ATM and use the target option **Deposit cash bag**. If you carry more than one bag, you pick which one, and the menu shows the business each came from. A progress bar plays, and the bag is taken from you.

A deposit is refused if:

* you already have a deposit in progress (one at a time by default),
* there aren't enough police on duty, if the server owner requires it (off by default),
* you're too far from the ATM.

The ATM models that work are listed in `Config.Deposit.Models`.

## Flagged Deposits

Every deposit rolls a hidden chance of being flagged. A flagged deposit alerts the police, with a blip at the ATM and the amount. You're never told whether yours was flagged.

| Deposit                       | Chance of being flagged                                                                                                                       |
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| **Your own bag**              | The share of the bag that was exposed money. A bag of only covered money is never flagged, and a bag of only exposed money is always flagged. |
| **A bag you didn't withdraw** | Always flagged.                                                                                                                               |

This is why covered money matters: it's what makes a bag safe to deposit. See the [Laundering](https://docs.t1ger.net/resources/t1ger-money-wash/guides/laundering.md) guide.

## Processing and Payout

A deposit doesn't pay out at once. It takes a few minutes to clear (10 by default), and a notification tells you when it was submitted. When it clears:

* the money is paid into **your bank**, minus a tax (20% by default),
* a notification tells you what was paid and what was taxed,
* if you withdrew the bag yourself, you earn reputation (5 points by default). Someone who deposits a bag they didn't withdraw doesn't.

If you're offline when it clears, you're paid when you're back.

## Police: Inspecting and Seizing

Officers can intercept a flagged deposit while it's still processing. At the ATM, an officer uses the target option **Check flagged transactions**. A grade and an on-duty requirement apply (grade 2 and on duty by default).

1. A progress bar plays while the officer pulls the transaction log.
2. The list shows every flagged deposit at that ATM, with its reference, the depositor's name, the amount and the time left until it clears.
3. The officer selects one and confirms **Seize Transfer**, after another progress bar.

The transfer is frozen and handed to the police as evidence, and the money is gone. The depositor is notified. Only deposits still processing at that ATM can be seized, and once the deposit has cleared, it's too late. See the [Police](https://docs.t1ger.net/resources/t1ger-money-wash/guides/police.md) guide.

## Server Restarts

A bag still in a player's inventory isn't affected by a restart. A deposit that is still processing when the server restarts, however, is lost: the bag is gone, and nothing is paid out. This stops a restart from helping anyone dodge the police. Server owners are informed in the console, and the `OnCashBagLost` hook lets you log it or refund the player yourself. See the Hooks page.

## If You Can't Withdraw or Deposit

| Message                                                                           | Why it happens                                        |
| --------------------------------------------------------------------------------- | ----------------------------------------------------- |
| Too much of this business's cash is already out in cash bags. Deposit them first. | You've reached the limit of uncashed bags.            |
| The Safe no longer holds that amount                                              | The amount is more than the Safe holds.               |
| You can't carry the cash bag. Make some room first.                               | Your inventory is full or too heavy.                  |
| Cash bags aren't supported by this server's inventory                             | The server's inventory isn't one the script supports. |
| You already have a bank deposit in progress                                       | Wait until your current deposit clears.               |
| You can't deposit this cash right now.                                            | Not enough police are on duty.                        |
| Carry only one cash bag to deposit it.                                            | Your inventory can only handle one bag at a time.     |
| You're too far from the ATM                                                       | Move closer to the ATM.                               |
