ABANDONED. Successor is here
FeedM
Customisable native feed notifications for FiveM.
Features
- Uses native UI
- Designed to emulate the native GTA:O feed system
- Can be positioned anywhere on screen unlike the native GTA:O notifications
- Customisable colors, fonts, etc
- Standard and advanced notifications
- Animated stacking and fading
- Supports reverse stacking for positioning at top of screen
- Supports message formatting
- Supports queuing and filtering duplicate notifications
Demo Videos
Events
Trigger notification from client
TriggerEvent("FeedM:showNotification", Message, Interval, Type)
Trigger notification from server
TriggerClientEvent("FeedM:showNotification", source, Message, Interval, Type)
Trigger advanced notification from client
TriggerEvent("FeedM:showAdvancedNotification", Title, Subject, Message, Icon, Interval, Type)
Trigger advanced notification from server
TriggerClientEvent("FeedM:showAdvancedNotification", source, Title, Subject, Message, Icon, Interval, Type)
Available params
-
Message
- the main message text you want to display -
Interval
- The duration inms
you want the notification to be displayed -
Type
- Determines the bg color of the message box (primary
,success
,warning
,danger
) -
Title
- The title of the notification (advanced only) -
Subject
- The subject of the notification (advanced only) -
Icon
- The icon to be used (advanced only). A list of available icons can be found here.
Client Functions
Show notification
exports.FeedM:ShowNotification(Message, Interval, Type)
Show advanced notification
exports.FeedM:ShowAdvancedNotification(Title, Subject, Message, Icon, Interval, Type)
ESX Users
You can override es_extended
to use FeedM
notifications by editing es_extended/client/functions.lua
and adding the exports
functions:
ESX.ShowNotification = function(msg)
exports.FeedM:ShowNotification(msg)
end
ESX.ShowAdvancedNotification = function(title, subject, msg, icon, iconType)
exports.FeedM:ShowAdvancedNotification(title, subject, msg, icon)
end
See GitHub repo for further documentation.