m-Tablet News is a custom app addon for m-Tablet, built for roleplay servers that want a city news feed inside the tablet. Players read announcements, react, and comment; authorized jobs publish official posts on their own channels with images and moderation tools.
Requires m-Tablet.
Main Highlights
- 2×2 news feed with search, channel filter, and full article view.
- Job-based publishing with minimum grade per channel (Config.Publishers).
- Up to 6 images per post via URL or m-Tablet gallery.
- Comments and configurable emoji reactions (left-click toggle, right-click picker).
- Post and comment moderation by author or senior job grade.
- English and Portuguese locales for UI and server messages.
- Optional Discord webhooks in server/webhooks.lua (posts and comments).
- Automatic database setup and migration (oxmysql).
- QBCore, QBox, and ESX support.
News Feed
Players browse a compact grid of cards with title, channel, author, date, and excerpt. They can search in real time, filter by channel (Weazel, Police, EMS, or any configured job), open the full article, and view images in a lightbox with navigation between photos.
Publishing System
Authorized jobs open a publish modal to choose channel, title, content, and images. Permissions are controlled by job name and minimum grade. A publisher mode banner shows when the player can post. Images can be added by link or picked from the tablet gallery already saved in m-Tablet.
Social Features
- Comments on every article for all players.
- Five configurable reactions (e.g. love, like, haha, wow, sad).
- Left click on the reaction button toggles the default reaction.
- Right click opens a mini emoji picker.
- Delete own comments; moderators can remove comments and posts.
Access And Moderation
Publishing is limited to jobs listed in Config.Publishers. Deleting any post in a channel can require a higher grade via Config.DeleteAnyPostMinGrade. Each channel supports its own label, icon, and color in the feed.
Localization
Set Config.Locale to en or pt. All NUI strings and server notifications use locales/en.lua and locales/pt.lua — no hardcoded UI text in config.
Discord Logs
Enable webhooks in server/webhooks.lua for optional logging when posts are created or deleted and when comments are added or removed. Webhook URLs stay out of config.lua for easier server management.
Requirements
- m-Tablet (required).
- ox_lib.
- oxmysql.
- QBCore, QBox or ESX.
Ideal For
- Servers using m-Tablet that want Weazel News, police bulletins, EMS updates, or city announcements in-world.
- Communities that need a social news feed with reactions and comments without a second UI resource.
- Stores selling m-Tablet addons with a polished, expandable custom app.