Installation and SQL
❓ Installation
Section titled “❓ Installation”Welcome to the installation guide for Dadi Initial Rewards.
Dependencies
Section titled “Dependencies”This script is free of dependencies.
How to Install the Script
Section titled “How to Install the Script”- Download the script from your FiveM keymaster. You will receive a .zip file named
dadi-reward.pack.zip. - Open the compressed file.
- Create a folder named
[dadi-market](if you don’t have it yet) in your server’s resources directory. - Copy the contents into the newly created folder.
- Extract here. Ensure that the folder
dadi_rewardsis generated. - Locate the [SQL] folder inside the package. This will be used in the next step.
- Start your FiveM server and ensure the script is loaded in your
server.cfg.
🗃️ SQL Installation
Section titled “🗃️ SQL Installation”To configure the script database, follow these steps:
- Extract the [SQL] folder from the package.
- Open MySQL Management System (like HeidiSQL or phpMyAdmin) and access your database.
- Prepare the environment: Ensure you are using the correct database. For instance:
USE `esxlegacy_123`;
- Execute the SQL: Copy the following code and run it in your database:
CREATE TABLE IF NOT EXISTS `dadi_rewards` (`identifier` varchar(69) NOT NULL,`date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET = latin1;
- Verify: Check that the table
dadi_rewardshas been created correctly.