How to use DigitalOcean as a VPS for a GTA V FiveM Server?

August 24, 2019 310 views
Initial Server Setup DigitalOcean Getting Started Ubuntu 16.04

I’m trying to create a FiveM Server so I followed the steps in the website provided by FiveM: https://docs.fivem.net/server-manual/setting-up-a-server/

I proceeded to create a droplet in DigitalOcean and create a license key for FiveM using the ip address of the droplet I just made. I tried connecting to my server using that ip address but it didn’t show. I’m not sure where to go on from here. If someone could please help me that would be great. Thank you!

1 Answer

Hello,

First you will have to connect to your Droplet via SSH, here’s how you could do that:

https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/

Then once you’ve logged into the droplet you can follow the Linux steps from the official site on how to install the software:

  • Create a new folder (for example mkdir /home/username/server).
  • Download the latest master branch build for Linux from the artifacts server(copy the URL for the latest server version and use wget <url> to download it).
  • Extract the build using cd path/to/server/folder && tar xf fx.tar.xz (you need to have xz installed, on Debian/Ubuntu this is in the xz-utils package).
  • Clone cfx-server-data in a new folder (other than your FXServer folder). For example git clone https://github.com/citizenfx/cfx-server-data.git /home/username/server-data
  • Make a server.cfg file in your server-data folder (copy the example server.cfg file below into that file).
  • Generate a license key at https://keymaster.fivem.net.
  • Set the license key in your server.cfg using sv_licenseKey "licenseKeyGoesHere".
  • Run the server from the server-data folder:
bash /home/username/server/run.sh +exec server.cfg

Hope that this helps!
Regards,
Bobby

  • I’ve been busy and haven’t got myself do this, but now that I have I’m still encountering problems. I followed this video: https://www.youtube.com/watch?v=RE2PLyFqCzE&t=1202s until he starts doing Node.js stuff so I could do the PuTTy stuff. Afterwards, I followed this video https://www.youtube.com/watch?v=9RJUXCV9V94 I then proceeded to direct connect to my server using the IP address but it could not find the server for some reason. And when I tried connecting to my server using FileZilla it would either timeout or say Disconnected: No supported authentication methods available (server sent: publickey).

    • Hello,

      To connect to your server via FileZilla you need to set your public SSH key in the Site Manager entry for your server (Use Protocol “SFTP” and Logon type “key file”).

      But you should be able to do everything via Putty, all of the commands from the official documentation should be executed via the terminal (Putty).

      Regards,
      Bobby

Have another answer? Share your knowledge.