> ## Documentation Index
> Fetch the complete documentation index at: https://docs.resrant-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Step-by-step guide to install and set up the Clothing script on your FiveM server.

## Installation Guide

> [tab] Step-by-Step Guide
>
> ### Complete Installation
>
> **1. Download the Resource**
>
> 1. Purchase the script from [Resrant Scripts](https://resrant-scripts.tebex.io/package/5293649)
>
> 2. Download the ZIP file from your [Cfx.re Keymaster](https://keymaster.fivem.net/assets) ("Purchased Assets" tab)
>
> > [!TIP]
> >
> > Regularly check Keymaster for updates to your purchased resources.
>
> **2. Prepare Your Database**
>
> Import the `clothing.sql` file (included with the script) into your server's database.
>
> ```sql clothing.sql theme={null}
> CREATE TABLE `clothing` (
>   `id` int(11) NOT NULL,
>   `identifier` varchar(100) DEFAULT NULL,
>   `name` longtext DEFAULT NULL,
>   `outfitprice` int(11) DEFAULT NULL,
>   `outfitname` longtext DEFAULT NULL,
>   `outfit` longtext DEFAULT NULL,
>   `gender` int(1) DEFAULT NULL,
>   `state` varchar(40) DEFAULT NULL
> ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
>
> ALTER TABLE `clothing`
>   ADD PRIMARY KEY (`id`);
>
> ALTER TABLE `clothing`
>   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=193;
> COMMIT;
> ```
>
> > [!NOTE]
> >
> > Ensure your database user has permissions to create tables and modify them.
>
> **3. Add the Resource to Your Server**
>
> 1. Unzip the downloaded file. This will create a folder (e.g., `rs_clothing`).
>
> 2. Transfer this folder into your server's `resources` directory.
>
> > [!TIP]
> >
> > For best results, upload the ZIP file directly to your server and extract it there to avoid file corruption.
>
> **4. Enable the Resource in Server Configuration**
>
> Open your `server.cfg` file and add the following line, replacing `[resource_name]` with the actual folder name of the script:
>
> ```cfg server.cfg theme={null}
> ensure [resource_name]
> ```
>
> For example: `ensure rs_clothing`
>
> > [!NOTE]
> >
> > The `ensure` command is preferred over `start` as it manages resource dependencies more effectively.
>
> **5. Configure the Script (Basic)**
>
> Navigate to the resource's folder and open `config.lua` with a text editor. Review basic settings. Detailed configuration is covered separately.
>
> > [!TIP]
> >
> > Always refer to the specific documentation page for your resource for detailed configuration guidance.
>
> **6. Start/Restart Your Server**
>
> Launch your FiveM server or restart it if it's already running.
>
> > [!WARNING]
> >
> > A full server restart is recommended when adding new resources to ensure all changes are applied correctly.
>
> Verify that the resource is running correctly by checking the server console for any error messages related to the script.

> [tab] Quick Installation
>
> ### Quick Install
>
> 1. Purchase and download the script.
> 2. Import `clothing.sql` to your database.
> 3. Extract the script folder to your server's `resources` directory.
> 4. Add `ensure [resource_name]` (e.g., `ensure rs_clothing`) to your `server.cfg`.
> 5. Restart your server.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.