# Installation

## Database

The database will be imported automatically for you when you start the resource for the first time.

## Server config

Our script is using fivem ACE permission system so we need add permission for our resource to be able to add permission to our predefined groups.

{% hint style="danger" %}
❗ DO NOT CHANGE `resource.rcore_clothing` TO ANYTHING ELSE ❗\
This part needs to have the exact name as the resource.
{% endhint %}

Insert this lines into your server.cfg / permissions.cfg (or wherever you store your ACE permissions)

```
add_ace resource.rcore_clothing command.add_ace allow
add_ace resource.rcore_clothing command.add_principal allow
add_ace resource.rcore_clothing command.remove_principal allow
```

## Permissions

You can configure permissions in the root file `permissions.lua`.

For QBCore you may need to change `group.superadmin` to `qbcore.god`.

Available permissions:

* `Permissions.USE_ADMIN_MODE`
  * Access to turn on admin mode and use all permissions prefixed ADMIN below.
* `Permissions.ADMIN_STOCK_MANAGEMENT`
  * Access to stock management feature used to choose which clothing will be available in which shop.
* `Permissions.ADMIN_EDIT_METADATA`
  * Access to metadata editing feature used to change clothing names, prices, colors, etc.
* `Permissions.ADMIN_EDIT_ARMS`
  * Arms editing feature, in case any torso sets incorrent matching arms, you can edit it using this feature.
* `Permissions.ADMIN_OUTFIT_EDITOR`
  * With outfit editor, you can create outfits for players and employees to use in certain shops.
* `Permissions.TOGGLE_ID_ONLY_MODE`
  * Toggle ID only mode, which allows players to toggle and use the old way of shopping with IDs of clothing.

## Framework

### ESX

Delete/disable `skinchanger` and `esx_skin`

### QBCore

Delete/disable `qb-clothing`

## Migration

In case you want to migrate player clothing and outfits from previous script, check [Migration](/paid-resources/rcore_clothing/migration.md) page.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.rcore.cz/paid-resources/rcore_clothing/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
