Very nice little plugin @Elio, thanks for your work !

To replace ESX’s notifications, edit es_extended/client/functions.lua

Search for:

ESX.ShowNotification = function(msg)
  SetNotificationTextEntry('STRING')
  AddTextComponentSubstringPlayerName(msg)
  DrawNotification(false, true)
end

Change it with that code (customize the type and timeout if needed):

ESX.ShowNotification = function(msg)
  exports.notif:SendNotification({
    text = msg,
    type = 'bottomLeft',
    timeout = 6000
  })
end

Then fix notif/__resource.lua (export in singular, GitHub PR about that bug: https://github.com/Sheamle/notif/pull/1/files)

Restart your server and enjoy !
Ping @TilburgRP

4 Likes