> For the complete documentation index, see [llms.txt](https://acestudios.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://acestudios.gitbook.io/docs/inventory-and-items/serial-scratcher/configuration.md).

# Configuration

Configure ace\_serialscratch through Config.lua.

All settings are in `ace_serialscratch/Config.lua`.

## Settings

| Option                  | Type    | Default                | Description                                                                |
| ----------------------- | ------- | ---------------------- | -------------------------------------------------------------------------- |
| `InventoryExport`       | export  | `exports.ox_inventory` | Your ox\_inventory export.                                                 |
| `SerialRemoved`         | string  | `'#⃥#̸#⃥#̸#⃥#̸#⃥'`     | Text shown as the weapon's serial number after it's scratched off.         |
| `RegisterRemoved`       | string  | `'Scratched'`          | Text shown as the weapon's registration after the serial is scratched off. |
| `RestoreSerialDiffulty` | string  | `'easy'`               | Forensics tool minigame difficulty: `'easy'`, `'medium'` or `'hard'`.      |
| `HalfSerialScratchTime` | string  | `'5'`                  | Seconds it takes to scuff a serial.                                        |
| `FullSerialScratchTime` | string  | `'10'`                 | Seconds it takes to wipe a serial.                                         |
| `LogActions`            | boolean | `true`                 | Logs player actions to Discord.                                            |
| `webhookURL`            | string  | placeholder            | Discord webhook for logs. **Use a private channel.**                       |

{% hint style="info" %}
Option names such as `RestoreSerialDiffulty` are spelled exactly as they appear in the config. Keep that spelling when you edit them.
{% endhint %}

## Clearing saved data

```lua
ClearDatabaseCommandEnabled = false,
ClearDatabaseCommand = 'clearweapondatabase'
```

| Option                        | Default                 | Description                                                                   |
| ----------------------------- | ----------------------- | ----------------------------------------------------------------------------- |
| `ClearDatabaseCommandEnabled` | `false`                 | Turns on the clear command. The command does nothing while this is `false`.   |
| `ClearDatabaseCommand`        | `'clearweapondatabase'` | Command that clears all saved scratched-weapon data. **Server console only.** |

{% hint style="danger" %}
Clearing the data **can't be undone** unless you have a backup. Back up `storage/scratched_weapons.json` first.
{% endhint %}

## Notifications

`Config.Notifications` holds the notification title and all player messages. You don't need to edit them, but you can translate them.
