Skip to main content

Managing FiveM Server

Note: This guide is only for FiveM servers installed on the Linux platform.

Uploading Files

During the installation of the FiveM server, you received SFTP/SSH user credentials.


Use these credentials to connect via any file transfer program.


Connecting to the Database

Add the following line to the server.cfg file:

set mysql_connection_string "server=127.0.0.1;database=DATABASENAME;userid=USERNAME;password=PASSWORD"

  • server – Since the database is installed locally, use the localhost address or 127.0.0.1.
  • database – Specify the name of the database where the structure was imported.
  • userid – Enter the username (provided during database installation).
  • password – Enter the password for the specified user.

Updating Artifacts

  1. Log in to SSH.
  2. Navigate to the FiveM server location using cd /home/fivem.
  3. Run the command ./update_artifacts.sh.
  4. Artifacts updated!

Fixing Permissions and Corrupted Artifacts

  1. Log in to SSH.
  2. Run the command skillhost.
  3. Select option 3.
  4. Done!

Managing the Server

  1. Stop txAdmin from SSH: service fivem stop.
  2. Start txAdmin from SSH: service fivem start.
  3. Restart the server from txAdmin SSH: service fivem restart.
  4. Change the password for the FiveM user: passwd fivem (note - the new password you enter will not be visible.)
  5. Disable the server's auto-start: systemctl disable fivem.