# 2・Installation

<figure><img src="/files/jneLncfmEptfSWtkdkZ3" alt=""><figcaption></figcaption></figure>

**If you use a custom framework,** \
**Go to** [**5**](/patamods-documentation/scripts/supermarket/4-advanced-configuration-custom-framework.md)[・ **Advanced configuration / Custom Framework**](/patamods-documentation/scripts/supermarket/4-advanced-configuration-custom-framework.md) <a href="#id-3bis" id="id-3bis"></a>
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

##

##

## **Read carefully, and follow the steps**.

### ![:1arrowpink:](https://cdn.discordapp.com/emojis/1048588915277307934.gif?size=44\&quality=lossless) Download our file from **Keymaster**&#x20;

* Unzip the .zip and open it:\
  You have two resources inside: One **`[MarketShop]`** and one **`[MarketShopSandy]`**\
  \&#xNAN;**-** The first one run the script at GigZ supermarket **Devis** **Mall** Location at **Los Santos**.\
  \- The other one run the same script *(but with differents event to work both)* at the new supermarket location **at Sandy's Shore**&#x20;

**This is the same MLO and script, but at two differents locations.**\
**So you can use \[MarketShop]&#x20;*****(Los santos)*****&#x20;or \[MarketShopSandy]&#x20;*****(Sansy's shore)*****&#x20;or BOTH at the same time.**

* Just Drag and drop **`[MarketShop]` or/and `[MarketShopSandy]`** inside your resource folder.<br>

**If you use both location, you need to make the step two times: Install the DB, config the supermarket ect for BOTH script.**\
**They have the same architecture, so follow the same step for both location.** \
\
\
\
**Now you are ready to install all the files correctly:**<br>

* Go to `marketShop/--InstallFiles--`, and install our `db.sql` to your DataBase. \
  \&#xNAN;*If you don't know how to install a SQL file, and since they are a lot of differents DB, you can make a google search for that OR refer to your VPS provider documentation.*

\
**Don't forget to do the same with `martketshopsandy` if you use both location.**

### **If you use&#x20;**<mark style="color:blue;">**ESX**</mark>**:**&#x20;

* Go to `marketShop/--InstallFiles--/esx` and install the `esxDB.sql` file to your DataBase.\
  **Don't forget to do the same with `martketshopsandy` if you use both location.**

### **If you use&#x20;**<mark style="color:orange;">**QBCORE**</mark>**:**&#x20;

* Go to `marketShop/--InstallFiles--/qbus`, and install `qbDB.sql` file to your DataBase.
* Now go to `marketShop/--InstallFiles--/qbus`, open the `jobconfig.txt` file and **follow the step inside the file**.\
  **Don't forget to do the same with `martketshopsandy` if you use both location.**

After that, **ensure** our script to your server.cfg **after all the dependencies**.&#x20;

* `ensure marketTrolley`&#x20;
* `ensure marketTrolleySandy` *(If you use sandy's shore's location)*
* `ensure marketShop`&#x20;
* `ensure marketShopSandy` *(If you use sandy's shore's location)*

<br>

⚠️ **In this order**&#x20;

Make sure to restart your server when you make any modification. \
Our **SuperMarket** is a huge script who manages a lot of props, many restart ingame will cause some problems.


---

# 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://patamods.gitbook.io/patamods-documentation/scripts/supermarket/2-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.
