Setting Up a FiveM Server (GTA V Roleplay)

Setting Up a FiveM Server

FiveM is the most popular GTA V multiplayer modification platform, widely used for roleplay (RP) servers.

Step 1 — Get a FiveM License Key

Go to keymaster.fivem.net, log in with your Steam account, and generate a license key for your server's IP.

Step 2 — Download FiveM Server Artifacts

adduser fivem && su - fivem
mkdir ~/fivemserver && cd ~/fivemserver
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/LATEST-RECOMMENDED/fx.tar.xz
tar -xJf fx.tar.xz

Step 3 — Create server.cfg

nano ~/fivemserver/server.cfg
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
set steam_webApiKey "YOUR_STEAM_API_KEY"
sv_licenseKey "YOUR_FIVEM_LICENSE_KEY"
sv_hostname "My RP Server"
sv_maxclients 32

# Resources
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode

Step 4 — Open Firewall Ports

ufw allow 30120/tcp
ufw allow 30120/udp

Step 5 — Start the Server

screen -S fivem ~/fivemserver/run.sh +exec server.cfg

txAdmin (Recommended Web Management UI)

txAdmin is bundled with FiveM artifacts. On first start, it will display a PIN — open http://YOUR_SERVER_IP:40120 in your browser and enter it to set up the txAdmin web interface for managing your server, resources, and players.

  • 0 utilizatori au considerat informația utilă
Răspunsul a fost util?

Articole similare

Setting Up a Minecraft Java Server

Setting Up a Minecraft Java Server Deploy a Minecraft Java Edition server on your dedicated...

Setting Up a CS2 Dedicated Server

Setting Up a Counter-Strike 2 Dedicated Server Deploy a CS2 server using SteamCMD on your...

Managing Game Servers with LinuxGSM

Managing Game Servers with LinuxGSM LinuxGSM (Linux Game Server Manager) simplifies installation...

Setting Up a Rust Dedicated Server

Setting Up a Rust Dedicated Server Step 1 — Install SteamCMD add-apt-repository multiverse -y...

Setting Up a Valheim Dedicated Server

Setting Up a Valheim Dedicated Server Step 1 — Install SteamCMD add-apt-repository multiverse...