How To Add SaltyChat to FiveM Server
August 17, 2024How to Optimize FiveM Resources
August 27, 2024Are you ready to transform your FiveM server with enhanced realism and immersive roleplay? ESX Legacy is a versatile and robust modification framework that powers numerous roleplay servers. This comprehensive tutorial will walk you through downloading, installing, and configuring ESX Legacy for your new server. Follow our step-by-step guide, and your server will be operational in no time!
1. Prerequisites
Before diving into the installation, ensure you have the following:
- Basic knowledge of FiveM servers and scripting.
- A running FiveM server.
- MySQL or MariaDB database (for storing player data).
- A text editor (e.g., Notepad++, Visual Studio Code).
2. Downloading ESX Legacy
The first step is downloading ESX Legacy from the official repository. Here’s how:
3. Installing ESX Legacy
With the files ready, proceed to install them on your FiveM server.
Upload ESX to Your Server: Upload the extracted ESX Legacy files to the resources
directory of your server. Organize them under a folder named [esx]
for easy management.
/resources/[esx]
Update the Server Configuration: Open your server.cfg
file and add the following lines:
ensure es_extended
ensure esx_menu_default
ensure esx_menu_list
ensure esx_menu_dialog
# Add additional ESX resources here
4. Configuring ESX Legacy
Proper configuration is essential for the seamless functioning of ESX Legacy.
Database Configuration: ESX requires a MySQL or MariaDB database. Import the SQL file included in the ESX directory into your database.
Import es_extended.sql into your MySQL database.
Edit es_extended Configurations: Navigate to the server
folder within es_extended
and open config.lua
. Update the database connection details with your own:
Config.DB.Host = '127.0.0.1'
Config.DB.User = 'your_db_username'
Config.DB.Password = 'your_db_password'
Config.DB.Name = 'your_database_name'
5. Starting Your Server
Now it’s time to start your server and test the setup.
Start Your Server: Start your server using the FiveM server start command or any server management tool.
bash start.sh
Verify ESX Legacy: Connect to your server and verify if ESX resources are running correctly by checking the console logs for any errors.
6. Troubleshooting and Tips
Here are some common tips if you encounter issues:
Ensure Database Connection: Double-check your config.lua
for correct database credentials.
Console Errors: If errors appear in the console, refer to the specific lines mentioned for diagnosis. These errors often point directly to the problem.
Check Community Forums: Visit the FiveM forums
Conclusion
By following this detailed guide, you’ve successfully installed and configured ESX Legacy on your FiveM server. Your players will now enjoy an enhanced, immersive roleplay experience. Happy gaming!
If this guide was helpful, don’t forget to share it with your friends and the community. For more FiveM mods, scripts, downloads, and resources, visit hifivem.com.