
Jürgen Newsadvert
Описание
Give your players an immersive, cyberpunk-inspired way to broadcast their messages to the city! **juergen_newsadvert** allows players to walk up to newspaper stands and mailboxes around Los Santos and access a retro-style terminal UI to pay for public server-wide advertisements.
Built with performance and security in mind, this script is 100% open-source, highly optimized, and completely plug-and-play.
## ✨ Features
* **Immersive Retro UI:** Features a custom HTML/CSS terminal interface with a realistic typing effect, blinking cursors, and sleek fade-out animations.
* **100% Open Source:** For €5, you get the fully unlocked code. Easily tweak the CSS colors to match your server's theme or modify the logic without any escrow restrictions.
* **Plug & Play Compatibility:** Works out of the box with both **QBCore** and **Qbox**. Automatically supports your choice of notification systems (`ox_lib`, `qb-core`, or `codem-supreme-notification`).
* **Bulletproof Security:** Fully protected against HTML/JavaScript injection (XSS) via the NUI. Includes server-side cooldowns to prevent spam and memory leaks.
* **Banned Word Filter:** Built-in string normalization detects and blocks banned words instantly, preventing toxic broadcasts from hitting your players' screens.
* **Discord Webhook Logs:** Automatically sends successful public broadcasts to a community Discord channel, while quietly sending blocked/banned word attempts to a private Admin-only channel for moderation.
## 📦 Dependencies
Ensure you have the following installed on your server:
* [ox_target](https://github.com/overextended/ox_target)
* **QBCore** or **qbx_core**
## 🛠️ Installation
1. Download the resource and extract it into your server's `resources` directory.
2. Ensure the folder name is exactly **`juergen_newsadvert`** (Remove any `-main` or version tags, otherwise the UI will not work).
3. Open `config.lua` and configure your framework, notification preference, prices, and Discord Webhooks.
4. Add `ensure juergen_newsadvert` to your `server.cfg`.
5. Restart your server!
## ⚙️ Configuration Preview
```lua
Config = {
Framework = 'qb', -- Choose 'qb' or 'qbx'
NotifySystem = 'ox', -- Choose 'qb', 'ox', or 'codem'
AdvertPrice = 20, -- The cost to place a broadcast
AdvertCooldown = 20000, -- Cooldown in milliseconds per player
DiscordWebhookURL = "YOUR_PUBLIC_WEBHOOK_HERE",
AdminDiscordWebhookURL = "YOUR_ADMIN_WEBHOOK_HERE",
BannedWords = {"badword1", "badword2"} -- Words blocked from the terminal
}
Jürgen
Just a small dev, making small things








