> For the complete documentation index, see [llms.txt](https://secret-code.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://secret-code.gitbook.io/docs/creators/secret-chat/installation.md).

# Installation

## **1. Create a Dedicated Folder**

* Navigate to your server's `resources` folder.
* Create a new folder specifically for our resources:

  ```plaintext
  ├─ resources  
   ├─ [Secret-Code]
  ```

***

## **2. Download the Resource**

* Log in to the **Cfx account** used to purchase the script.
* Download the resource package.
* Extract the downloaded `.zip` file, and you’ll find two folders:
  * `Secret-Chat`
  * `Chat`
* Move both folders into your newly created `[Secret-Code]` directory:

  ```sql
  ├─ resources  
   ├─ [Secret-Code]  
     ├── Chat  
     ├── Secret-Chat  
     ├── Other Secret-Code-Resource
  ```

***

## **3. Configure the Server**

* Open your `server.cfg` file and ensure the `[Secret-Code]` folder is properly loaded. Add the following line:

  ```lua
  ensure [Secret-Code]
  ```

***

**4. Install the SQL Files**

* Inside the `Secret-Chat/[1]install` directory, you’ll find two SQL files:
* ```
   ├─ Secret-Chat  
     ├── [1]install
      ├── secret_chat.sql  
      ├── secret_chat_data.sql
  ```

Import both SQL files, `secret_chat.sql and secret_chat_data.sql`  into your database using your preferred database management tool (e.g., ***phpMyAdmin***, ***HeidySQL,*** etc).
