# Documentation

## Setup your framework

{% tabs %}
{% tab title="ESX" %}

#### Config

```lua
Config.Framework = "ESX"
```

{% endtab %}

{% tab title="QB-Core" %}
{% hint style="info" %}
QB CORE NOT AVAILABLE FOR NOW
{% endhint %}

#### Config

```lua
Config.Framework = "QB
```

{% endtab %}
{% endtabs %}

## SQL

Execute the SQL file

```sql
CREATE TABLE `axio_moneywash` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`identifier` VARCHAR(60) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
	`amount` INT(11) NULL DEFAULT NULL,
	`percent` INT(11) NULL DEFAULT NULL,
	`time` INT(11) NULL DEFAULT NULL,
	`active` TINYINT(1) NULL DEFAULT '1',
	INDEX `id` (`id`) USING BTREE
)
COLLATE='utf8mb4_unicode_ci'
ENGINE=InnoDB
```

## Config

### Info

#### Log

{% hint style="info" %}
If you want log player activity with the script set to "true"

Set your discordWebhook
{% endhint %}

#### blackMoneyAccount

{% hint style="info" %}
Choose your account name for black money. \
In basic ESX it's "black\_money"
{% endhint %}

#### TimeToWash

{% hint style="info" %}
It's the time need for wash the money.\
You can change but's your need to but the time in HOUR only
{% endhint %}

#### Cops

{% hint style="info" %}
You can choose to alert the cops (20%)\
You can configure the time before cops receive alert\
\
YOU HAVE TO SET IN "cops\_sv.lu" YOUR CALLING SYSTEM FOR COPS
{% endhint %}

#### SerchTime

{% hint style="info" %}
It's the time the player took to search the vehicle
{% endhint %}

#### TimeBeforeDespawnCar

{% hint style="info" %}
The time before the car is delete
{% endhint %}

#### Ped

{% hint style="info" %}
Model : The ped model, you can change&#x20;

Pos : Choose your, but need to be a "vector4"
{% endhint %}

#### Washing

{% hint style="info" %}
It's the different washing level available

You can change / add or remove many level as you want
{% endhint %}

#### SpawnCarPos

{% hint style="info" %}
The differents spawning point available\
Need a vector4
{% endhint %}

#### Vehicle

{% hint style="info" %}
List of vehicle can spawn
{% endhint %}

### Notification

{% hint style="info" %}
You can add your notification system\
Just replace with your\
\
type for **client** = "error" / "success" / "inform"
{% endhint %}

{% code title="config.lua" %}

```lua
Config.ClientNotification = function(title, msg, type)
    lib.notify({
        title = title,
        description = msg,
        type = type,
        position = 'bottom'
    })
end
```

{% endcode %}
