# weazel-news

<figure><img src="/files/iR9TRUYdZQ4qhbnl0gRH" 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)]


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dolajiscripts.com/resources/weazel-news.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
