> 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/compensation-stashes/installation.md).

# Installation

Install ace\_compstashes on a QBCore server with ox\_inventory.

## Requirements

* **QBCore** (`qb-core`)
* [ox\_inventory](https://github.com/overextended/ox_inventory)
* [ox\_lib](https://github.com/overextended/ox_lib)
* [oxmysql](https://github.com/overextended/oxmysql)

## Steps

{% stepper %}
{% step %}

### Place the resource

Copy `ace_compstashes` into your `resources` directory.
{% endstep %}

{% step %}

### Add it to `server.cfg`

{% code title="server.cfg" %}

```properties
ensure oxmysql
ensure ox_lib
ensure qb-core
ensure ox_inventory

ensure ace_compstashes
```

{% endcode %}
{% endstep %}

{% step %}

### Grant staff permission

Either give the ACE to a group:

{% code title="server.cfg" %}

```properties
add_ace group.admin AceStashManage allow
```

{% endcode %}

…or add license identifiers to `Config.AdminLicense`. See [Commands & Permissions](/docs/inventory-and-items/compensation-stashes/commands-and-permissions.md#permissions).
{% endstep %}

{% step %}

### Add your webhooks (optional)

Fill in the `Config.DiscordLogs` webhooks. See [Configuration](/docs/inventory-and-items/compensation-stashes/configuration.md#discord-logs).
{% endstep %}

{% step %}

### Restart the server

{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Keep the `db/` folder and its JSON files. With `SaveStashesToJsonFile = true`, the stashes you create are saved there.
{% endhint %}
