A professional, easy-to-use, and highly customizable notification resource for FiveM, supporting both QBCore and ESX frameworks.
💬 Support Discord: Join the Community
🎥 Showcase Video: Watch on YouTube
-
Download or clone the repository to your
resources
folder. -
Add the following line to your
server.cfg
:
ensure v42-notify
Step 1: Open the file:
qb-core/client/functions.lua
Locate the QBCore.Functions.Notify
function (around line 88) and replace the entire function with:
function QBCore.Functions.Notify(text, texttype, length)
exports['v42-notify']:notify(text, texttype, length)
end
Step 2: Restart your server or type in your console (F8):
ensure v42-notify
QBCore.Functions.Notify("Your message here", "success", 5000)
Step 1: Open the file:
es_extended/client/functions.lua
Locate the ESX.ShowNotification
function (around line 73) and replace the entire function with:
function ESX.ShowNotification(message, notifyType, length)
if GetResourceState("v42-notify") ~= "missing" then
return exports['v42-notify']:notify(message, notifyType, length);
end
print("[^1ERROR^7] ^5v42-notify^7 is Missing!")
end
Step 2: Enable ESX notification integration in your config.lua
:
Config.EsxNotification = true
Step 3: Restart your server or type in your console (F8):
ensure v42-notify
ESX.ShowNotification("Your message here", "success", 5000)
You can easily create custom notifications by editing the config.lua
:
Example:
['error'] = {
icon = 'fas fa-exclamation-triangle', -- Custom icon (FontAwesome)
sound = "sound.mp3", -- Custom sound file (.mp3)
color = '#FF0045', -- Notification background color
volume = "0.3", -- Sound volume (0.0 to 1.0)
mute = false, -- Set to true if you want to mute the sound
},
You can create as many notification types as needed (e.g., success, warning, info, admin, bank, etc.).
To test notifications quickly, enable debug mode in your config.lua
:
Config.Debug = true
Then use the following in-game command to test:
/notify success
You can set notification positions in your config.lua
:
Config.Position = "top-right"
Available positions:
- top-left
- top-right
- bottom-left
- bottom-right
- top-center
- bottom-center
- left
- right
v42-notify/
├── client/
│ └── client.lua
├── html/
│ ├── assets/
│ │ ├── css/
│ │ │ └── main.css
│ │ ├── js/
│ │ │ └── app.js
│ │ └── sound.mp3
│ └── ui.html
├── config.lua
├── fxmanifest.lua
├── LICENSE
└── README.md
- 🔊 Custom sounds must be
.mp3
and placed in/html/assets/
. - 🎨 Icons available via FontAwesome.
- 🔁 Customize styles, fonts, and animations in
style.css
.
Join our Discord Community for support or to showcase your setup.
Enjoy a professional and easy-to-use notification system with v42-notify 🚀
Made with ❤️ by v42-Josh.