d0p3t
2
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.
- Create a Linux user for fivem
- Login to that user
- Create a
fivem folder inside the users home directory (~/fivem)
- Create a folder called
server and cd to it
wget the linux artifact and extract it in that server folder (tar -xvf fx.tar.gz )
- 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.
- Create a
server.cfg INSIDE the server-data folder
- 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