> For the complete documentation index, see [llms.txt](https://docs.dolajiscripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dolajiscripts.com/resources/weazel-news.md).

# weazel-news

A complete FiveM Weazel News system with article management, staff chat, employee roles, analytics, and public news portal. Supports QBCore, ESX, and Qbox.

<figure><img src="https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2Fi5FKl2JJWqknl2IeqbFB%2Fweazelnews.png?alt=media&amp;token=f29e004e-8d8d-471a-93ed-bddf7f85617f" alt=""><figcaption></figcaption></figure>

[<mark style="color:purple;">**View on Tebex**</mark>](https://dolajiscripts.com/script/weazel-news-portal-and-newspaper)  <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Youtube Video**</mark>](https://youtu.be/00ftZsm6ybY) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Discord**</mark>](https://discord.gg/dolaji-s-scripts-952174929518936114)

### ⚙️ Dependencies

* QBCore, ESX, or Qbox framework
* oxmysql
* screenshot-basic

### 📦 Installation

1. **Purchase and Download**
   * Extract the resource to your server's resources folder
   * Rename the folder to `weazel-news`
2. **Database Setup**

   ```sql
   -- Import the provided SQL file
    SQL/weazel-news.sql
   ```
3. **Server Configuration**\
   Add to your `server.cfg`:

   ```cfg
   ensure oxmysql
   ensure screenshot-basic
   ensure weazel-news
   ```
4. **Framework Configuration**

   * QBCore: Add job to `qb-core/shared/jobs.lua`

   ```lua
   ['reporter'] = {
      label = 'Weazel News',
      defaultDuty = true,
      grades = {
        ['0'] = { name = 'Reporter', payment = 50 },
        ['1'] = { name = 'Senior Reporter', payment = 75 },
        ['2'] = { name = 'Editor', payment = 100 },
        ['3'] = { name = 'Chief Editor', payment = 125 },
        ['4'] = { name = 'Chief', isboss = true, payment = 125 },
      },
      },
   ```

   * ESX: Add job to your jobs database

   ```sql
   INSERT INTO `jobs` (`name`, `label`) VALUES ('reporter', 'Weazel News');
   INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
   ('reporter', 0, 'reporter', 'Reporter', 50, {}, {}),
   ('reporter', 1, 'senior', 'Senior Reporter', 75, {}, {}),
   ('reporter', 2, 'editor', 'Editor', 100, {}, {}),
   ('reporter', 3, 'chief_editor', 'Chief Editor', 125, {}, {}),
   ('reporter', 4, 'boss', 'Chief', 125, {}, {}),
   ```

   * Qbox: Add job to `qbx_core/shared/jobs.lua`

   ```lua
   ['reporter'] = {
      label = 'Weazel News',
      defaultDuty = true,
      offDutyPay = false,
      grades = {
        [0] = { name = 'Reporter', payment = 50 },
        [1] = { name = 'Senior Reporter', payment = 75 },
        [2] = { name = 'Editor', payment = 100 },
        [3] = { name = 'Chief Editor', payment = 125 },
        [4] = { name = 'Chief', isboss = true, payment = 125 },
      },
      },
   ```
5. **Discord Webhook**
   * Create a webhook in your Discord server
   * Update `Config.DiscordWebhook` in `config.lua`

### ⚡ Commands

* `/weazel` - Open MDT (Staff only)
* `/newspaper` - Open public news interface (All players)

### 📝 License

This is a paid resource. Reselling or sharing is strictly prohibited.

### 🔄 Updates

* Regular updates and maintenance
* Bug fixes and security patches
* Feature requests consideration
* Framework compatibility updates

### ⚠️ Important Notes

* Requires FiveM build 2802 or higher
* Minimum MySQL version: 5.7

For additional support or custom development, contact us through our Discord.

### Language Configuration

The translation files are located in the `web/locales` directory. To modify translations:

1. Edit the language files in `web/locales` (e.g., `en.js`)

### 🆘 Support

For support, join our Discord server: \[[Discord](https://discord.gg/vhF9ke3hJG)]
