π’ Ads System
Modern advertisement system for QB-Core and QBox
One command. Job-based broadcasts. Per-ad billing. Discord logs. Admin tools.
/ads opens a clean NUI where players can create and send advertisements like police alerts, EMS notices, mechanic promos, taxi calls, anonymous messages, and custom business ads. Each ad shows as a smooth, scrollable banner to every player on the server. Everything is handled server-side including cooldowns, billing, filtering, and database logging.
π¬ Preview
β¨ Features
- π Predefined Ads Police, EMS, Mechanic, Taxi, Realtor, Lawyer, Anonymous, General. Fully editable in
shared/adtypes.lua. - βοΈ Custom Ads Players can create their own ads with title, message, category, logo, background, colour, and sound. Live preview included.
- π History Last 50 ads saved per player. Resend with one click.
- π‘οΈ Admin Panel View recent ads, manage bans, schedule ads, stop running ads, and reset locks.
- π° Billing Each ad type can have its own cost. Custom ads use a flat fee.
- β±οΈ Cooldowns Per-player cooldown with UI feedback.
- π« Word Filter Block or censor unwanted words.
- π‘ Discord Logs Sends a clean embed for every ad.
- ποΈ Database Uses oxmysql and auto-creates the ads history table.
- π Sounds Supports custom OGG sounds or fallback effects.
- π Banner Positions Six different screen positions supported.
- π¨ Branding Per-ad styling including logos and colours.
- π§ Job Restrictions Control who can send which ads.
- βοΈ Auto Framework Detection Works with QB-Core and QBox automatically.
π Requirements
| Dependency | Version |
|---|---|
| QB-Core or qbx_core | Latest |
| oxmysql | Latest |
| ox_lib | Latest |
β‘ Installation
- Place
ads-systemin yourresources/folder - Add
ensure ads-systemto yourserver.cfg - Start your server once to generate the database table
- Edit
shared/config.luafor your settings - Edit
shared/adtypes.luato match your server
Use /ads in-game and you're ready.
π οΈ Configuration
Config.Framework Β Β Β = 'auto'
Config.Command = 'ads'
Config.PlayerCooldown = 120
Config.DisplayTime = 11
Config.BannerPosition = 'top-center'
Config.CurrencySymbol = 'R'
Config.Billing.enabled = true
Config.Billing.cashFirst = true
Config.WordFilter.enabled = true
Config.WordFilter.action = 'block'
Config.Discord.enabled = true
Config.Discord.webhook = 'https://discord.com/api/webhooks/...'
Config.SaveAds.enabled = true
Config.SaveAds.historyLimit = 50
Config.CustomAds.enabled = true
Config.CustomAds.cost = 500
Config.CustomAds.titleMaxLen = 60
Config.CustomAds.messageMaxLen = 400π― Why choose this?
- Simple to use with a single command
- Everything important is handled server-side
- Full logging and moderation tools included
- Works out of the box with QB-Core and QBox
