Importing the SQL File
Some CJM.dev scripts include a .sql file.
This file contains the database tables or data required for the script to function correctly.
You will need to import this file into your server’s database before using the resource.
Step-by-Step Guide
You can use any database tool such as HeidiSQL, phpMyAdmin, or similar.
Start your preferred database program and connect to the MySQL database used by your FiveM server.
2. Select Your Server Database
Once connected, locate the database used by your server.
This is often named something like:
or another custom name depending on your setup.
Click on the correct database to open it.
3. Open the SQL / Query Editor
Most database tools have a Query or SQL tab.
Open this editor so you can run SQL commands.
4. Load the SQL File
Open the .sql file that came with the script using a text editor (such as Notepad or VS Code).
Copy all of the contents and paste it into the SQL editor inside your database tool.
If the script includes multiple SQL files, repeat this process for each one.
Execute the query using the Run / Execute button in your database tool.
If the import was successful, the required tables or entries will be created in your database.
Avoid importing the same .sql file multiple times unless the documentation specifically says to do so.