FiveM server documentation

Deploy a roleplay-ready FiveM environment with a clean base install, proper script structure, and a reliable server management routine.

How to install FiveM server

FiveM uses FXServer artifacts and a server data folder. On managed hosting, this is often prewired. On a VPS or custom environment, use the workflow below.

  1. Create the server directories

    Create one folder for the FXServer binaries and another for your server data. Keeping them separate makes upgrades cleaner.

    mkdir -p ~/fivem/server ~/fivem/server-data
    cd ~/fivem/server
  2. Download the latest Linux artifact

    Upload the archive from the FiveM artifacts page or download it directly on the machine, then extract it into the server folder.

    tar xf fx.tar.xz -C ~/fivem/server
    cd ~/fivem/server-data
    Tip: Keep the artifact filename versioned so you know which build is currently deployed when troubleshooting after an update.
  3. Prepare server data and configuration

    Add your server.cfg, choose a database-backed framework if needed, and confirm your endpoint settings, sv_licenseKey, and txAdmin profile details are correct.

    endpoint_add_tcp "0.0.0.0:30120"
    endpoint_add_udp "0.0.0.0:30120"
    sv_maxclients 32
    set steam_webApiKey "YOUR_STEAM_WEB_API_KEY"
    sv_licenseKey "YOUR_CFX_RE_KEY"
    ensure mapmanager
    ensure chat
    ensure spawnmanager
    ensure sessionmanager
    ensure hardcap
    ensure rconlog
  4. Start the server with txAdmin or run.sh

    Managed hosts usually expose txAdmin in the panel. On a VPS, launch the FXServer binary from the server folder and follow the txAdmin web wizard.

    cd ~/fivem/server
    bash ./run.sh +set serverProfile default
Important: If txAdmin asks for a pin, finish the initial setup promptly and store the admin credentials securely. Never share your txAdmin login in Discord chats.

How to add scripts

Every resource should live inside your resources folder and be started from server.cfg or the txAdmin recipe manager.

  1. Upload the script into a dedicated folder

    Use SFTP or the hosting file manager to place the script in a clear path such as resources/[standalone]/script-name.

  2. Verify the manifest file

    Most modern resources use fxmanifest.lua. Older resources may still use __resource.lua. Read the author’s install notes for dependencies like ox_lib, MySQL, or ESX/QBCore.

  3. Ensure the resource in the correct load order

    Framework dependencies must start before scripts that rely on them. Place libraries first, then frameworks, then jobs, UI, and gameplay packs.

    ensure oxmysql
    ensure ox_lib
    ensure qb-core
    ensure qb-target
    ensure my-custom-housing
  4. Restart only what changed

    For live servers, use a targeted resource restart instead of rebooting the whole instance when possible.

    ensure my-custom-housing
    restart my-custom-housing
Best practice: Keep premium or custom scripts in their own category folders so updates and dependency checks are easier during maintenance windows.

How to start, stop, and restart the server

You can control the instance from your host panel, txAdmin, or the console. Use controlled restarts whenever scripts touch databases or player state.

ActionRecommended methodWhy it matters
Start serverPanel start button or run.shEnsures the process boots with the expected profile and monitoring.
Soft restarttxAdmin scheduled restartWarns players and can run cleanup hooks before the instance goes down.
Resource restartrestart resource-nameFastest fix for one script without affecting the full player base.
Stop serverquit or panel stopLets the process exit cleanly instead of being killed abruptly.
status
players
restart qb-target
quit

Before planned restarts, announce downtime inside txAdmin, verify OneSync and database services are healthy, and keep backups of critical resource configs.

Don’t want to do this manually?

We can install FiveM, configure txAdmin, upload dependencies, and verify your startup order for you.

Still having issues? Contact support

Join our Discord if txAdmin is inaccessible, artifacts will not boot, or a resource creates console spam after deployment.