> For the complete documentation index, see [llms.txt](https://swift-peak-hosting-dev.gitbook.io/swift-peak-hosting-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://swift-peak-hosting-dev.gitbook.io/swift-peak-hosting-docs/fx-server-setup.md).

# FX Server Setup

## Fivem Server Documentation

Toggle Dark Mode:

**PLEASE NOTE: ONLY START YOUR SERVER WITH THE SHORTCUT OR THE SERVER WILL NOT START CORRECTLY**

### Introduction

### Getting Started

Follow these steps to set up your brand new FiveM Server:

1. Launch Remote Desktop
2. Enter your server credentials (All information will be on the website).
3. [Get Git](https://git-scm.com/download/win)
4. [Get VSCODE](https://vscode.download.prss.microsoft.com/dbazure/download/stable/31c37ee8f63491495ac49e43b8544550fbae4533/VSCodeUserSetup-x64-1.86.1.exe)
5. [Get 7Zip or WinRAR](https://www.7-zip.org/a/7z2301-x64.exe)

Download and install FiveM Server: [Download FiveM Server](https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/)

Make sure to have WinRAR or 7-Zip installed to open the files, then export them into a folder called FX Server or whatever you like. Then follow the steps below:

* Normally, we give you a notepad on the desktop or documents with a list of ports you may use.
* TX Admin Setup: Go to FX start and make FXServer.exe - Shortcut
* Please note that the port code below is an example. Do not use it!!

Then enter your server path: `Add your path here\FXServer.exe +set txAdminPort 40125`

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

Change A port to your server port you were given.

### TX Admin Database Setup

Go to Database Setup

{% content-ref url="/pages/aOzo1oMvv1LLDFIFir5X" %}
[Database Setup for Wales, UK server](/swift-peak-hosting-docs/database-setup-for-wales-uk-server.md)
{% endcontent-ref %}

For non-TX Admin Setup: [Download FiveM Server](https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/)

### For non-TX Admin Setup, go here:

* Download server data: [Download server data](https://github.com/citizenfx/cfx-server-data)
* Then follow this documentation to set up the rest of your Vanilla Server Installation: [then follow this docs](https://docs.fivem.net/docs/server-manual/setting-up-a-server-vanilla/)

### How Do I Join My Server?

You can do this in two ways that we suggest, either via your server key that gives you a link in CMD, or through the Cloudflare route where you set up a DNS A Record and then an SRV Record.

Please make sure the name is the same as the new A Record you made.

© 2023 SwiftPeakHosting. All rights reserved.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://swift-peak-hosting-dev.gitbook.io/swift-peak-hosting-docs/fx-server-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
