Replacing Default Notifications ( ESX / QB-Core )
QB-Core
Replace the default QB-Core notifications in your qb-core/client/functions.lua:
function QBCore.Functions.Notify(text, texttype, length)
exports['clear-notify']:ShowNotification({
title = "Notification",
message = text,
type = texttype:upper(),
duration = length
})
endESX
Replace the default ESX notifications in your es_extended/client/functions.lua:
function ESX.ShowNotification(msg, type, length)
exports['clear-notify']:ShowNotification({
title = "Notification",
message = msg,
type = type or "INFO",
duration = length or 5000
})
endLast updated