# Installation

## 1) Download the item

As mentioned in #Quickstart, download the asset from [<mark style="color:green;">**here**</mark>](https://portal.cfx.re/assets/granted-assets?). Drag and drop it to the relevant resources file. After that, make sure to download and install the required dependency files.

## 2) Have required resources

Make sure all required dependencies are up to date and started before this resource;

* **QB/ESX**
* **Oxmysql**

{% embed url="<https://github.com/overextended/oxmysql>" %}

## 3) Import MySQL

<figure><img src="/files/LvzywWrpmInvoPWx9uio" alt=""><figcaption><p>(Example: How to import <code>.sql</code> files using phpMyAdmin)</p></figcaption></figure>

Depending on your MySQL version, simply drag and import the  `.sql` files into your database.

{% hint style="info" %}
Import methods may vary based on your database, check YouTube for a tutorial that fits your setup.
{% endhint %}

{% hint style="warning" %}
Your asset includes multiple versions of the `.sql` file. One has the houses shown in the trailer and screenshots, while the other is a clean version, ready for you to start fresh. Just so you know!
{% endhint %}

## 4) Configure

<figure><img src="/files/7yxNnsviRKnKbtAnlQ6W" alt=""><figcaption><p>(Picture of the . <code>.cfg</code> file)</p></figcaption></figure>

You'll need to go through each `.cfg` file to choose whether you’re using the QBCore or ESX framework. You can also adjust various features to suit your preferences.

{% hint style="info" %}
Make sure to change `Config.AllowedLicenses` to enable access to the `/createhousing` command.
{% endhint %}

{% hint style="warning" %}
Keep in mind there are two separate `.cfg` files, one in the furniture script, and the other in the housing script.
{% endhint %}

{% hint style="danger" %}
Make sure to enable this in fxmanifest.lua for **ESX**;

<pre><code><strong>'@es_extended/imports.lua'
</strong></code></pre>

{% endhint %}


---

# 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://789.gitbook.io/789/items/premium-properties/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.
