# ⁉️ Installation

{% hint style="warning" %}
Before installing the Wizard Mileage System, ensure you have the following dependencies:

* [wizard-lib](https://github.com/CodeWizardsDev/wizard-lib)
* [oxmysql](https://github.com/overextended/oxmysql)
* [ox\_lib](https://github.com/overextended/ox_lib)
* One of the following Framewokrs:
  * [ESX](https://github.com/ESX-Official/es_extended)
  * [QB](https://github.com/qbcore-framework/qb-core/)
  * [QBox](https://github.com/Qbox-project/qbx_core)&#x20;
  * [ND\_Core](https://github.com/ND-Framework/ND_Core)
* One of the following targeting systems:
  * [ox\_target](https://github.com/overextended/ox_target)
  * [qb-target](https://github.com/qbcore-framework/qb-target)
    {% endhint %}

## Installation Steps <a href="#installation-steps" id="installation-steps"></a>

{% stepper %}
{% step %}

### Step 1

Download the latest release of [wizard-mileage](https://github.com/CodeWizardsDev/wizard-mileage/) and check if you have dependencies
{% endstep %}

{% step %}

### Step 2

Extract the folder and ensure it's named `wizard-mileage`&#x20;

**Please do not rename the script to support me:)**
{% endstep %}

{% step %}

### Step 3

Copy the folder to your server's resources directory
{% endstep %}

{% step %}

### Step 4

Add the following line to your `server.cfg`:

```properties
ensure wizard-mileage
```

The scripts order must be like this:

```properties
ensure oxmysql
ensure ox_lib
ensure wizard-lib
ensure wizard-mileage
```

{% endstep %}
{% endstepper %}

***

## Finish setting up the script

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td>Setting up the database</td><td><a href="/pages/DlGzGGfrJWY5w8wJdUe6">/pages/DlGzGGfrJWY5w8wJdUe6</a></td><td><a href="/files/n0oQyq0YXXr8PImtEai7">/files/n0oQyq0YXXr8PImtEai7</a></td></tr><tr><td>Setting up the inventory</td><td><a href="/pages/Oi7of9z499BOPFgshbG1">/pages/Oi7of9z499BOPFgshbG1</a></td><td><a href="/files/WMfUB9ECsuoi3namjq8g">/files/WMfUB9ECsuoi3namjq8g</a></td></tr></tbody></table>


---

# 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://code-wizards.gitbook.io/codewizards/mileage-system/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.
