Installation
Installation of inDailyReward Resource
📖 in-daily - Documentation
This documentation covers the installation and configuration of the in-daily reward system.
1️⃣ Installation
📂 File Setup
Extract the
in-daily.zipfile.Move the
in-dailyfolder to your server's resource directory:resources/[scripts]/in-dailyEnsure the resource is active in your
server.cfg:ensure in-daily
📌 Database Setup
Run the following SQL query in your database:
```sql
CREATE TABLE IF NOT EXISTS `in_daily_rewards` (
`citizenid` varchar(50) NOT NULL,
`usual` longtext NOT NULL DEFAULT '{}',
`collected` longtext NOT NULL DEFAULT '{}',
`start_date` date DEFAULT NULL,
PRIMARY KEY (`citizenid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
CREATE TABLE IF NOT EXISTS `in_avatarsystem` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`citizenid` varchar(50) NOT NULL,
`image_url` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `citizenid` (`citizenid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
```
Last updated