Install sql

How to Install the Database for the Script:

Step 1: Open the Script Folder

  1. Navigate to the folder where the script was extracted.

  2. Look for a folder named [SQL] inside the script files.

Step 2: Locate the SQL File

  1. Open the [SQL] folder.

  2. Find the SQL file (commonly named something like esx_drugs.sql).

Step 3: Import the SQL File into Your Database

  1. Open your database management tool (e.g., phpMyAdmin, HeidiSQL, or MySQL Workbench).

  2. Connect to your server's database where your FiveM server data is stored.

  3. Select the database you use for your FiveM server.

Step 4: Execute the SQL File

  1. Look for an option like Import or Run SQL Script in your database tool.

  2. Upload or open the esx_drugs.sql file.

  3. Execute the SQL file to import the necessary tables and data.

Step 5: Verify the Import

  1. Check your database to ensure the new tables and data have been added successfully.

  2. Look for tables related to the script (e.g., drugs, inventory, or similar names).

Additional Notes:

  • Make sure the database you're using matches the one specified in your FiveM server.cfg configuration file.

  • If you encounter errors during the import, double-check that your SQL file is compatible with your database version and setup.

💡 Tip: Always back up your database before importing new SQL files to avoid accidental data loss.

Last updated