# ESX

### Download

Download the latest version of `ESX maikol-carrepo` from [**Keymaster**](https://keymaster.fivem.net/asset-grants)

#### Dependencies

* [es-extended](https://github.com/esx-framework/esx-legacy)
* [ox\_lib](https://github.com/overextended/ox_lib)
* [PolyZone](https://github.com/mkafrin/PolyZone)

**Optional**

To enable the targetting system you need

* [ox-target](https://github.com/overextended/ox_target)

{% hint style="info" %}
The targeting system is favored over the default DrawText due to improved performance.
{% endhint %}

### Installation

After you download & ensure the resource and its dependencies in the `server.cfg` file, import the `import_me.sql` file in the resource folder to your database. In the event where you don't know how, or can't, upon starting the server the database entries will be added if they don't exist, a restart will need to be done afterwards.

* Setup your notifications, progressbar, vehicle fuel and vehicle keys in the resource file `maikol-carrepo\config.lua`.
* If you would like to enable the job requirement to begin working, in the resource file `maikol-carrepo\config.lua` verify that `Config.requireJob` is set to **true**.
* If you would like to enable the job mail during repos, you must setup the message function for your phone in the resource file `maikol-carrepo\config.lua`.
  * Out of the box support is provided for Quasar Phone, if you would like to see your phone natively supported, please suggest it over discord.
* If you would like to enable the repo letter item, you must verify in the resource file `maikol-carrepo\config.lua`, the entry `Config.inventoryUsed` is set to your inventory.
  * At the moment only ox-inventory is supported out the box, if you would like to see your inventory added, please suggest it over discord.

```md
   Add the line below to your `ox_inventory\data\items.lua` resource file
     ['repoletter'] = {label = 'Repo Letter', consume = 0, server = {export = 'maikol-carrepo.repoletter'}},
    
   In the resource file `maikol-carrepo\config.lua` update 'Config.inventoryUsed' to 1
```

## Having Issues?

Please contact me over Discord @ `Maikol#5282`

I will assure you get the script working on your server flawlessly. 😃


---

# 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://maikolscripts.gitbook.io/docs/maikol-carrepo/esx.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.
