# Setup TxAdmin

### In your "Artifacts" folder, open the file called "FXServer"

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

### Give Access to Private and Public Wifi

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

### Then in the opend tab on your browser called ["txAdmin"](http://localhost:40120/addMaster/pin#), link your cfx account to your server. Use the PIN from the FXServer file, if its not automated.

<figure><img src="/files/76AShXlG911mPvj1AQob" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/dRELjCWIWGVAAmaa9GDc" alt="" width="346"><figcaption></figcaption></figure>

### Authorize txAdmin

<figure><img src="/files/laSJUigdeOzUnH1GmDQn" alt="" width="418"><figcaption></figcaption></figure>

### Put in your Discord ID/User ID and a backup password. Then Press Register

<figure><img src="/files/UF0z4iKM3CHVSdKSZUsT" alt="" width="303"><figcaption></figcaption></figure>

### Then press "Next"

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

### Then write your server name

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

### Then select a Deployment Type (I would recommed Popular Recipes too)

<figure><img src="/files/B1XXJsyW2m5lzBaJ3LmS" alt="" width="375"><figcaption></figcaption></figure>

### In Popular Recipe press on the template/core u want to play with.

### In this case:  "ESX Legacy"

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

### Then select the Data Location

### Press "Change Path"

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

### Type in the location for your server folder and press "Save"

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

### Then Press "Go to Recipe Deployer"

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

### Then Press "Next"

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

### Then type in your "License Key" from your [keymaster](/create-a-server/getting-started.md) and press "Run Recipe"

<figure><img src="/files/4neLfo0ReUPc9cchrAH9" alt=""><figcaption></figcaption></figure>

### When its done, then press "Next"

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

Then u will get a file like this:

{% code lineNumbers="true" fullWidth="false" %}

```lua
# # # # # # # # # # # # # # # # # # # # # # # # # # #
#    ___ _____  __  _    ___ ___   _   _____   __   #
#   | __/ __\ \/ / | |  | __/ __| /_\ / __\ \ / /   #
#   | _|\__ \>  <  | |__| _| (_ |/ _ \ (__ \ V /    #
#   |___|___/_/\_\ |____|___\___/_/ \_\___| |_|     #
#                                                   #
#     Discord: https://discord.esx-framework.org/   #
#     Website: https://esx-framework.org/           #
#     CFG Docs: https://aka.cfx.re/server-commands  #
# # # # # # # # # # # # # # # # # # # # # # # # # # #


# Editable Settings
# -----------------
# You can edit the following:

endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

# Set Tags
sets tags "default, esx, esx legacy, official, roleplay"

# Optional Editable Settings
# --------------------------
# You may edit the following:

sv_licenseKey ""
sv_hostname "MyServerName | ESX Legacy Server"
sets sv_projectName " MyServerName | [ESX Legacy]"
sets sv_projectDesc "The official recipe of the most popular FiveM RP framework, containing Jobs, Housing, Vehicles & more!"
set mysql_connection_string "mysql://root@localhost/ESXLegacy_8245BC?charset=utf8mb4"
load_server_icon esxLogo.png
sv_maxclients 48
sets locale "root-AQ" 
sv_enforceGameBuild 3258
set resources_useSystemChat true

# System Administrators
# ---------------------
# Add system admins

add_principal group.admin group.user
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
add_ace resource.es_extended command.add_ace allow
add_ace resource.es_extended command.add_principal allow
add_ace resource.es_extended command.remove_principal allow
add_ace resource.es_extended command.stop allow
add_principal identifier.fivem:782308 group.admin #Simonfas
add_principal identifier.discord:252803235864117248 group.admin #Simonfas

# pma-voice Config
# ----------------
setr voice_enableRadioAnim 1
setr voice_useNativeAudio true
setr voice_useSendingRangeOnly true

# security-convars
# ----------------
sv_enableNetworkedSounds false
sv_enableNetworkedScriptEntityStates false
sv_enableNetworkedPhoneExplosions false
sv_filterRequestControl 2

# ESX Language (edit to change the language of ESX)
# -----------------------------------------------------------
## Umcomment to set your own locale,
## if not, it will use the language you have selected in txAdmin.
#setr esx:locale "en"

# Default & Standalone Resources
# ------------------------------
ensure chat
ensure hardcap
ensure oxmysql

# ESX Legacy Core
# ----------
ensure [core]

# ESX Addons
# ----------
ensure [standalone]
ensure [esx_addons]
```

{% endcode %}

### In the set tags, setup tags to your server

### In the sv\_hostname "" and sv\_projectName, set in the server name without the "ESX Legacy Server" Text

### sv\_maxclients is how many player slots you want, for a development server type in 10

### locale is your "Country Tag" ex. american (en-US) or french (fr-FR) or danish (da-DK)


---

# 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://fivemdocs.simonfas.dk/create-a-server/getting-started/setup-txadmin.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.
