A sleek, modern notification system for FiveM with sound support and multiple positioning options. https://discord.gg/fqUsy3FuYn
- Download and extract to your FiveM resources folder
- Rename the folder to
motion_notify - Add your
alert.oggsound file to thehtml/folder (or use the default one) - Add
ensure motion_notifyto yourserver.cfg - Restart your server
-- Basic usage
exports['motion_notify']:Notify('Success', 'Action completed!', 'success')
-- With duration
exports['motion_notify']:Notify('Warning', 'Be careful!', 'warning', 7000)
### Server Side
```lua
-- Send to specific player
exports['motion_notify']:Notify(source, 'Server Message', 'Hello!', 'success', 5000)
-- Send to all players
for _, playerId in ipairs(GetPlayers()) do
exports['motion_notify']:Notify(playerId, 'Announcement', 'Server restart in 5 minutes', 'warning', 10000)
endIf any of the integrations do not work, please open a ticket in our discord or submit a pull request https://discord.gg/fqUsy3FuYn
We recommend to integrate with ox_lib:
- Replace
lib.notifyfunction with code fromintegrations/ox_lib/notify.lua
- Copy
integrations/qbcore/motion_notify.luatoqb-core/motion_notify.lua - Add
client_script 'motion_notify.lua'toqb-core/fxmanifest.lua
- Replace Notify function in
qbx_core/client/functions.luawith code fromintegrations/qbox/client.lua - Replace Notify function in
qbx_core/server/functions.luawith code fromintegrations/qbox/server.lua
- Copy
integrations/esx/motion_notify.luatoes_extended/motion_notify.lua - Add
client_script 'motion_notify.lua'toes_extended/fxmanifest.lua
exports['motion_notify']:Notify(title, message, type, duration)
exports['motion_notify']:Notify(source, title, message, type, duration)
title (string): Notification title message (string): Notification message type (string): 'success', 'error', 'warning', 'info' duration (number): Duration in milliseconds
success- Greenerror- Redwarning- Orangeinfo- Blue
/editnotify - Change default notification position and sound
/resetnotify - Reset the to the default notification position and sound
/testnotify - To test the default notifications
For issues or questions, please open an issue on GitHub or open a ticket in our discord: https://discord.gg/fqUsy3FuYn
GNU GPL v3