# Setup FiveM Server

Install XAMPP From <https://www.apachefriends.org/download.html> After the Installation Run it and Start Apache & MySQL

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

***

### Artifacts and TxAdmin <a href="#artifact-and-txadmin" id="artifact-and-txadmin"></a>

Download the "**Latest Recommended "** Artifact FiveM From [runtime.fivem.net](https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/) and extract them to new folder

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

Double click on **FXServer.exe** to run it. Once loaded, it should open a web browser page

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

After you link your **FiveM account**, which it should do automatically, make a **password**. Then you will be greeted with steps

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

When you get to step number 3, click "**Popular Template**" then select a template ( I select **"QBCore Framework"** )

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

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

Select a **folder** you would like to store your server data in&#x20;

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

Scroll to the bottom and click "**Next**"

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

Paste your "**KeyMatser"** key where prompted

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

Then click "**Run Recipe**"

<figure><img src="/files/2leMFZ9hYmXflwrYjXdm" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Let yarn install all the way through on the initial startup.

\
Don't Forget to Open FiveM Ports :[<br>](https://docs.cortex-host.com/windows-server/install-mariadb)
{% 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://docs.leora-host.com/windows-server/fivem/setup-fivem-server.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.
