> For the complete documentation index, see [llms.txt](https://lumio-studio.gitbook.io/intro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lumio-studio.gitbook.io/intro/moneywash/configuration.md).

# Configuration

Language

There are a few default languages that come with the script. You can easily add your own language or just translate one of the default ones. Let me show you how to choose your language.

1\) Go to the `fxmanifest.lua` and look for `shared_scripts`.&#x20;

2\) You will find this on that spot:

```lua
shared_scripts {
    'translations/en.lua', --Choose a language, you can add some yourself if you want
    'config.lua'
}
```

3\) On the 2nd line you see `translations/en.lua` this stands for English. So if you want Dutch for example you choose `nl.lua` instead of `en.lua`. This is possible because `nl.lua` is already present in the `translations folder`.

## Configurations

<details>

<summary>Config.WashSettings</summary>

```lua
Config.WashSettings = {
    ['markedbills'] = {
        type = 'metadata', --amount / worth / metadata (READ DOCS)
        value = nil, --READ DOCS
        time = 1, --Time to wash item in minutes
        lossPercent = 10 --Percentage of loss when washing
    }
}
```

**Variables:**

Type: `metadata` / `amount` / `worth`&#x20;

* **"metadata"** uses the `info.worth` metadata of the item. For example the `info.worth` is 7500$ then you wash 1 bag at the time and the value in return is the `7500$ - losspercent`.
* **"amount"** will use the amount of bills/bags you have on hand. For example when you put the variable `value` on 100 then people can wash 100 bags at the same time and the worth of the wash is `100 - losspercent`.
* **"worth"** will use `value` as the worth of the wash. If you put value on 1000, `1 bag = 1000$ - losspercent`.

Value: `nil` / `any other number`

* The `value` not used when putting `type` on **metadata.**
* The `value` is put on the **amount of bags** you want to be able to be washed at 1 time when using `type` as "**amount".**
* The `value` is put on the **amount of money** you want players to **earn from 1 bag**.

Time: `any number`

* This is the time for **1 wash** to complete (in minutes)

Losspercent: `any number`

* The amount of money that gets lost when taking the money out of the washing machine.
* Money put in - losspercent = final earnings.

**Adding more items:**

```lua
Config.WashSettings = {
    ['markedbills'] = {
        type = 'metadata',
        value = nil,
        time = 1,
        lossPercent = 10
    },
    ['inkedbills'] = {
        type = 'worth',
        value = 1000,
        time = 1,
        lossPercent = 10
    },
    ['moneyrolls'] = {
        type = 'amount',
        value = 100,
        time = 1,
        lossPercent = 15
    }
}
```

</details>

<details>

<summary>Config.Shell</summary>

Interior of laundromat (default GTA)

</details>

<details>

<summary>Config.ContactPed</summary>

* `model` | Model of the ped
* `pos` | Position of the ped
* `price` | Price to pay when you start the mission
* `cooldown` | Cooldown in hours, time a laundromat stays active

</details>

<details>

<summary>Config.Sound</summary>

* `name` | Name of the `.ogg` file
* `volume` | Volume of the sound
* `distance` | Range of the sound

</details>

<details>

<summary>Config.Washers</summary>

Washing machines boxzones and declaration

</details>

<details>

<summary>Config.EmployeePeds</summary>

* `positions` | Ped spawns
* `models` | Models of peds

</details>
