Security HUD
System Watchdog
×
Threads Scanned ⟳
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new

Script Mb_notify [React Js][Notification]

Lilibeth

Gold Elite
Joined
Jul 4, 2021
Messages
186
Reaction score
57,821
Points
316
✌️Hello VAG Forum Family ✌️




1630486307637.png


A simple notification script with multiple options​

Features
Displays notifications one by one (queue) so they can be spammed
Simple and Beautiful UI (Credits to Material UI library for react)


How to use
Client side

Code:
exports['mb_notify']:sendNotification(yourMessage, options)

Server side
Code:
TriggerClientEvent('mb_notify:sendNotification', source, yourMessage, options)

Examples
Code:
 exports['mb_notify']:sendNotification('this is default bottom center')
    exports['mb_notify']:sendNotification('this is error type top center', {type="error", vertical="top"})
    exports['mb_notify']:sendNotification('this is info type and filled variant top right', {type="info", vertical="top", horizontal="right", variant="filled"})
    exports['mb_notify']:sendNotification('this is warning type and outlined variant bottom right', {type="warning", horizontal="right", variant='outlined'})
    exports['mb_notify']:sendNotification('this is default top left with duration 1 second', {vertical='top', horizontal='left', duration=1000})
    exports['mb_notify']:sendNotification('this is default bottom left', {horizontal='left'})

Options

  1. Duration (default 5000 ms)
  2. Types (default success, warning, info, and error)
  3. Positions (default bottom center)
  4. Notification variant (default standard, filled, and outlined)

GOOD FORUMS🖋️​
 
Top