You don’t need this.

Do you have a separate server-data folder with your resources + server.cfg? In otherwords, did you copy ALL of your files and THEN download the Linux artifact? Or did you start from scratch?

Although, from the looks of it the server does start. I would suggest this: start from scratch.

  1. Create a Linux user for fivem
  2. Login to that user
  3. Create a fivem folder inside the users home directory (~/fivem)
  4. Create a folder called server and cd to it
  5. wget the linux artifact and extract it in that server folder (tar -xvf fx.tar.gz )
  6. GO BACK to the fivem folder and git clone https://github.com/citizenfx/cfx-server-data.git server-data. This will create another folder called server-data that has the default resources.
  7. Create a server.cfg INSIDE the server-data folder
  8. Launch it from that directory bash ../server/run.sh +exec server.cfg

At this point you have a clean install of a FiveM server. Make sure you can connect to it.

Now that you know you can connect to it fine, you can copy over your resources to the resources folder located at ~/fivem/server-data/resources. At this point, if it crashes again, you know it’s a resources causing it, but my guess is you didn’t extract the server artifact correctly resulting in corrupt files.

More info: Setting up a server - Cfx.re Docs

Good luck.

1 Like