Welcome to our little tutorial about speeding up your FiveM server, perform all steps in this guide to make your server super-fast. We will show you how to improve the performance.
If you’re a FiveM server owner, you know that if your server is too slow, it can be pretty frustrating for you, your admins and the players. You might have heard that there are all kinds of things you can do to make a faster server but don’t know where to start or what works best. At the end of this post I’ll give you some tips on how to increase your server speed w/o adding or switching servers and even include a free tool that will help keep those pesky scripts from slowing down your game!
At a glance
To speed up your server, it’s important to address the following:
- The server itself (i.e., the physical machine) – Upgrade your hardware if needed.
- The web host (i.e., where the physical machine is located)
- Server software (the program that runs on top of the operating system and allows you to run scripts)
- Database (the file that stores all data for your server)
Disable ‘power-save mode’
FastDL, short for Fast Download, is a feature of the FiveM server. It allows your server to download mods from the internet faster by downloading them in parallel instead of serially. To enable FastDL, you will need to change a few settings on your server’s config file and restart the server.
Make sure to disable the Windows function “Power Save” and you will notice a speed-up of your FiveM server.
Remove unnecessary scripts
If you’re running a FiveM server and want to increase your server’s performance, the first thing that you should do is remove any dependencies or scripts you don’t need. Dependencies are things like mods, scripts and other files that are required for the server to work properly. When you start your server, these dependencies will be loaded into memory. This can slow down your server if there are too many of them or if they’re large in size (for example, if they contain high-resolution textures).
To see what dependencies exist on your current FiveM installation, open the command prompt and run: “grep -r path/to/fivem_server/mods/**.dll /your/path/to/fivem_server”. This command will list all files ending with “.dll” under the folder “mods” inside your FiveM install directory.
Disable mods you don’t use.
Mods are a way to customize your FiveM server, but if you don’t use them, they’ll add to the server’s load. This can cause performance issues and even crash your server. If you’re not using them, disable them in the server’s config file (the .cfg file). Here are some examples of mods you could disable:
- Maps you don’t use
- Vehicles you don’t use
Remove unnecessary scripts.
Remove any scripts that are no longer used, or that you don’t know are being used. If you’re not sure about a script, try to remove it and see if anything breaks. If nothing breaks, the script is redundant and can be safely removed.
Make sure to test, test and test.
Check the max-players value
Next, you will want to check the “max-players” value. This can be found in the Host & Play tab under “game”.
The max-players value determines how many players can join your server at once. If you have a large community of players and/or if there are many more people that want to join than what’s allowed by your max player count, then this may be slowing down your server’s performance. However if there are no more people that would like to join your server than what is allowed by your max player count, increasing this value could cause problems with lag or crashing as well as not allowing more than one person on the server at a time!
Compress your server’s resources
You can also compress your server’s resources. Compressing files will reduce their size and thereby increase the amount of data that can be sent over a network connection. You should set compression level as high as possible, but keep in mind that higher compression levels use more CPU power. If you experience frame drops, decrease the compression level until your FPS is back up again.
Try to compress vehicle resources, maps and anything else into one resource. The less resources you have, the better your server will load!
Upgrade Server Hosting
Sometimes, it is needed to upgrade server hardware. If the CPU of your server is too slow (or old), the server will lag and so your players will, too.
Try upgrading to a 4-core CPU (at least/minimum), 8 GB of RAM and a 1 GB/s internet connection!
Small changes – Huge effects!
There are many other factors that can affect the speed of your server, but these are some of the most common and easiest to correct. If you’re having trouble with any other parts of your FiveM experience, please reach out to us by posting in our forums or joining the #support channel in Discord!
Your server is a reflection of you, so you should want to make it as fast and efficient as possible. The best way to do this is by following our tips above. If your server is still slow after following these steps, then maybe it’s time for an upgrade or new server!