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

# Installation

## Required

The following resources are required for Secret Garage to work:

* ox\_lib :link: [***https://github.com/overextended/ox\_lib***](https://github.com/overextended/ox_lib)
* Screenshot Basic :link: <https://github.com/citizenfx/screenshot-basic>                                 . *`(Optional, for Photoroom only.)`*

## **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**](https://portal.cfx.re/assets/granted-assets) used to purchase the script.
* Download the resource package.
* Extract the downloaded `.zip` file:
  * `Secret-Garage`
* Move both folders into your newly created `[Secret-Code]` directory:

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

***

## **3. Configure the Server**

* Open your `server.cfg` file and make sure the `[Secret-Code]` folder is properly loaded.
* Make sure it is started **AFTER all required dependencies and your framework**.  \
  and after the framework  \
  for example:

  ```lua
  ensure ox_lib
  ensure [Dependencies]
  ensure My-Framework
  ensure [Secret-Code]
  ```

***

**4. Install the SQL Files**

* Inside the `Secret-Garage/[1]INSTALL` directory, you will find the SQL files for each supported framework:
* ```
  Secret-Garage
  └── [1]INSTALL
      ├── SQL-ESX-setup.sql
      ├── SQL-QBCORE-setup.sql
      ├── SQL-QBOX-setup.sql
      └── SQL-STANDALONE-setup.sql
  ```

Import **only the SQL file that corresponds to your framework**:

* `SQL-ESX-setup.sql` — ESX
* `SQL-QBCORE-setup.sql` — QBCore
* `SQL-QBOX-setup.sql` — Qbox
* `SQL-STANDALONE-setup.sql` — Standalone / Custom Framework

Import the selected file into your database using your preferred database management tool, such as **phpMyAdmin**, **HeidiSQL.**

> **Important:** Secret Garage does **not** automatically create or modify the required database tables. The appropriate SQL file must be imported before starting the resource.
