> For the complete documentation index, see [llms.txt](https://fivemdocs.simonfas.dk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fivemdocs.simonfas.dk/create-a-server/getting-started/setup-txadmin.md).

# Setup TxAdmin

Step 3

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

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FpONji34zbz5kiqXWBWGo%2Fimage.png?alt=media&amp;token=c35db029-ccfd-48a0-8f8a-0608adefa4ae" alt=""><figcaption></figcaption></figure>

### Give Access to Private and Public Wifi

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FBrCxzxxVQdCR9e16iUOL%2Fimage.png?alt=media&amp;token=5736f86b-228a-4580-bcde-8888b0b8143f" 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="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FwLSxle49USqEirlFbIJn%2Fimage.png?alt=media&amp;token=2aea60f7-eaee-47a8-a378-29d60511e125" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FEcvjJf52JgBawgyS0Jft%2Fimage.png?alt=media&amp;token=6bb57959-55f7-4d9d-afd5-2498c75c82e7" alt="" width="346"><figcaption></figcaption></figure>

### Authorize txAdmin

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2Ftpc92Z8EuspS7MnKxKTT%2Fimage.png?alt=media&amp;token=83cf0438-4e66-438a-9969-d68c08b7c7f7" alt="" width="418"><figcaption></figcaption></figure>

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

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FtTW1sJF6uWcs2HvF9QDp%2Fimage.png?alt=media&amp;token=7557730e-1bf6-4ae0-bb27-8a8f33e531f4" alt="" width="303"><figcaption></figcaption></figure>

### Then press "Next"

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FXVzxaUKNpn5DDV3OWjdU%2Fimage.png?alt=media&amp;token=6bc4ae5e-9c39-4048-97ff-16620c16fe96" alt=""><figcaption></figcaption></figure>

### Then write your server name

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FxXZuqHPkE58DPwon3zKn%2Fimage.png?alt=media&amp;token=b3f29e81-ad35-497d-871a-ee40b643e044" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FugAE2ZkpJRiyCOEDJcTM%2Fimage.png?alt=media&amp;token=2b170da3-9951-46be-be63-2d5f1e98b8a6" 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="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FwFSyx7dAubOm4dfCOYfP%2Fimage.png?alt=media&amp;token=084209a8-1291-4664-9195-8be5074a79c9" alt=""><figcaption></figcaption></figure>

### Then select the Data Location

### Press "Change Path"

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FNuY5y95tOwK7iNmO6Oqc%2Fimage.png?alt=media&amp;token=f9fa1365-c989-4941-8ced-a3c1c7d7b6cb" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FimFj9P5DpXTcT9TDLR7C%2Fimage.png?alt=media&amp;token=bd1c77fa-d245-41c0-9bf6-24bc7df5365a" alt=""><figcaption></figcaption></figure>

### Then Press "Go to Recipe Deployer"

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FAltHkbIZOrlg8RduBNhY%2Fimage.png?alt=media&amp;token=5ec4caa7-22a1-42dd-bd9b-894031eaa884" alt=""><figcaption></figcaption></figure>

### Then Press "Next"

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FjAEDF5MFxWdMacVz8qFY%2Fimage.png?alt=media&amp;token=0c346824-849f-420b-be36-73c0e49aaa03" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2FHvjmDYOChH1Y8e9MmrRb%2Fimage.png?alt=media&amp;token=ccb81658-8dc2-433f-be32-4e47c44ee1d5" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3771380621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLXLvOxTTuVghuuBZIHqt%2Fuploads%2Frf8NHQLLfZEtloNE09g1%2Fimage.png?alt=media&amp;token=e4752e34-4c88-4c26-be74-5e9173d91915" 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)
