Bilingual / Bilingüe — English & Español
A modern and elegant notification system for FiveM. Provides a clean, professional visual interface to replace the default notifications on your server.
✅ Framework Compatibility: This resource works with any framework (QBCore, ESX, Standalone, etc.) out of the box. The global integration tutorial below uses QBCore as a reference — if you use a different framework, find the equivalent notification function and apply the same replacement logic.
- Clone or download this repository.
- Copy the
dsco_notifyfolder into your server'sresources/directory. - Add the following line to your
server.cfg:ensure dsco_notify - Restart your server.
Call showNotify from any script using exports or events:
Client-side:
exports["dsco_notify"]:showNotify("error", "This is a test")Server-side:
TriggerClientEvent("dsco_notify:showNotify", source, "info", "This is a test")Notification types:
| Type | Description |
|---|---|
"info" |
Neutral informational message |
"success" |
Positive confirmation |
"error" |
Error or warning |
📌 The steps below are written for QBCore. If you use ESX or another framework, locate the equivalent
Notifyfunction in your framework's files and apply the same replacement logic.
This makes every script on your server (jobs, police alerts, inventory, etc.) automatically use dsco_notify — no individual script changes needed.
Edit: resources/[qb]/qb-core/client/functions.lua
Find QBCore.Functions.Notify and replace it with:
function QBCore.Functions.Notify(text, texttype, length, icon)
local messageText = text
if type(text) == 'table' then
messageText = text.text or 'Placeholder'
end
local validTypes = {
['primary'] = 'info',
['success'] = 'success',
['error'] = 'error',
['info'] = 'info'
}
local finalType = validTypes[texttype] or 'info'
exports["dsco_notify"]:showNotify(finalType, messageText)
endEdit: resources/[qb]/qb-core/server/functions.lua
Find QBCore.Functions.Notify and replace it with:
function QBCore.Functions.Notify(source, text, type, length)
local messageText = text
if type(text) == 'table' then
messageText = text.text or 'Placeholder'
end
local validTypes = {
['primary'] = 'info',
['success'] = 'success',
['error'] = 'error',
['info'] = 'info'
}
local finalType = validTypes[type] or 'info'
TriggerClientEvent('dsco_notify:showNotify', source, finalType, messageText)
end
⚠️ Restart your server after editing these files for changes to take effect.
Add these commands to verify everything is working:
RegisterCommand('testsuccess', function() showNotify("success", "Script is working!") end)
RegisterCommand('testerror', function() showNotify("error", "Script is working!") end)
RegisterCommand('testinfo', function() showNotify("info", "Script is working!") end)Un sistema de notificaciones moderno y elegante para FiveM. Proporciona una interfaz visual limpia y profesional para reemplazar las notificaciones predeterminadas de tu servidor.
✅ Compatibilidad: Este recurso funciona con cualquier framework (QBCore, ESX, Standalone, etc.) sin configuración adicional. El tutorial de integración global a continuación usa QBCore como referencia — si usas otro framework, busca la función de notificación equivalente y aplica la misma lógica de reemplazo.
- Clona o descarga este repositorio.
- Copia la carpeta
dsco_notifydentro del directorioresources/de tu servidor. - Añade la siguiente línea a tu
server.cfg:ensure dsco_notify - Reinicia tu servidor.
Llama a showNotify desde cualquier script usando exports o eventos:
Cliente:
exports["dsco_notify"]:showNotify("error", "Esto es un test")Servidor:
TriggerClientEvent("dsco_notify:showNotify", source, "info", "Esto es un test")Tipos de notificación:
| Tipo | Descripción |
|---|---|
"info" |
Mensaje informativo neutral |
"success" |
Confirmación positiva |
"error" |
Error o advertencia |
📌 Los siguientes pasos están escritos para QBCore. Si usas ESX u otro framework, localiza la función
Notifyequivalente en los archivos de tu framework y aplica la misma lógica de reemplazo.
Esto hace que todos los scripts de tu servidor (trabajos, avisos de policía, inventario, etc.) usen automáticamente dsco_notify — sin necesidad de modificar cada script individualmente.
Edita: resources/[qb]/qb-core/client/functions.lua
Busca QBCore.Functions.Notify y reemplázala por:
function QBCore.Functions.Notify(text, texttype, length, icon)
local messageText = text
if type(text) == 'table' then
messageText = text.text or 'Placeholder'
end
local validTypes = {
['primary'] = 'info',
['success'] = 'success',
['error'] = 'error',
['info'] = 'info'
}
local finalType = validTypes[texttype] or 'info'
exports["dsco_notify"]:showNotify(finalType, messageText)
endEdita: resources/[qb]/qb-core/server/functions.lua
Busca QBCore.Functions.Notify y reemplázala por:
function QBCore.Functions.Notify(source, text, type, length)
local messageText = text
if type(text) == 'table' then
messageText = text.text or 'Placeholder'
end
local validTypes = {
['primary'] = 'info',
['success'] = 'success',
['error'] = 'error',
['info'] = 'info'
}
local finalType = validTypes[type] or 'info'
TriggerClientEvent('dsco_notify:showNotify', source, finalType, messageText)
end
⚠️ Reinicia tu servidor después de editar estos archivos para que los cambios surtan efecto.
Añade estos comandos para verificar que todo funciona correctamente:
RegisterCommand('testsuccess', function() showNotify("success", "¡El script está funcionando!") end)
RegisterCommand('testerror', function() showNotify("error", "¡El script está funcionando!") end)
RegisterCommand('testinfo', function() showNotify("info", "¡El script está funcionando!") end)Have questions or need help? Join our Discord community!
¿Tienes dudas o necesitas ayuda? ¡Únete a nuestra comunidad de Discord!
Made with ❤️ for the FiveM community.