fivemluauim2notifytutorial
Get started with M2.Notify — a beautiful notification system for FiveM.
March 22, 2026
1 min read
2 views
Start using M2.Notify
M2.Notify is a UI notification library for FiveM that does not depend on any dependencies. It has 4 types of notifications. and supports both Client and Server side
Why use M2.Notify?
- Zero dependency — Can be used immediately without installing anything additional.
- 4 notification types — success, error, warning, info
- Custom duration — Adjustable display time.
- Clean UI — Beautiful, professional design
Installation
Add to server.cfg:
ensure M2.Notify
Client-side usage
-- Success notification
exports['M2.Notify']:Notify('success', 'Successful purchase!', 5000)
-- Error notification
exports['M2.Notify']:Notify('error', 'Not enough money', 3000)
-- Warning notification
exports['M2.Notify']:Notify('warning', 'Out of stock!', 4000)
-- Info notification
exports['M2.Notify']:Notify('info', 'Server will restart in 5 minutes', 5000)
Server-side usage
AddEventHandler('myScript:giveItem', function()
local src = source
TriggerClientEvent('M2.Notify:Notify', src, 'success', 'Item received!', 5000)
end)
Parameter Reference
| Parameter | Type | Description |
|---|---|---|
| type | string | success, error, warning, info |
| message | string | Message to display |
| duration | number | display time (milliseconds) |
Compare to ESX Default
-- Old ESX
ESX.ShowNotification('Purchase successful!')
-- M2.Notify (more beautiful, has type and duration)
exports['M2.Notify']:Notify('success', 'Purchase successful!', 5000)
Summary
M2.Notify is a drop-in replacement for the original notification system that instantly upgrades the player experience.
Related Articles
Breaking: GTA Online อัพเดท "Money Fronts" — FiveM Server Owners ต้องทำอะไร?
Rockstar ปล่อย GTA Online อัพเดท Money Fronts มีผลกระทบต่อ FiveM servers บางส่วน นี่คือสิ่งที่ต้องทำทันทีหลังอัพเดท
Community Spotlight: Script และ Projects ที่น่าสนใจจาก FiveM Community
รวม scripts, tools และ projects ที่โดดเด่นจาก FiveM community ในช่วงที่ผ่านมา ตั้งแต่ free resources ถึง open-source projects
txAdmin อัพเดทใหม่ — Dashboard, Diagnostics และ Ban System ที่ดีขึ้น
txAdmin ซึ่งตอนนี้เป็นส่วนหนึ่งของ Cfx.re อย่างเป็นทางการ ได้รับการอัพเดทครั้งใหญ่ มี features ใหม่ที่ทำให้ Server Management ง่ายขึ้นมาก