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

  1. Extract the in-daily.zip file.

  2. Move the in-daily folder to your server's resource directory:

    resources/[scripts]/in-daily
  3. Ensure the resource is active in your server.cfg:

    ensure in-daily
  4. Restart your server.

    🔗 Dependencies

    The script requires:

    • QB-Core or ESX (supports both frameworks)

    • oxmysql or mysql-async (for database support)

📌 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