Skip to content

ESX.ShowAdvancedNotification

1
ESX.ShowAdvancedNotification(title, subject, msg, icon, iconType)

This function shows an advanced notification. See Arguments Explained for an explanation of what each argument does.

ESX.ShowAdvancedNotification Example

1
2
3
4
5
6
7
8
9
function notification(msg)

  local mugshot, mugshotStr = ESX.Game.GetPedMugshot(GetPlayerPed(-1))

  ESX.ShowAdvancedNotification('title', 'subject', 'msg', mugshotStr, 1)

  UnregisterPedheadshot(mugshot)

end
Result

Advanced Notification Example Picture

Arguments Explained

  • title → Title / Header
  • subject → Sub-Title / Subject
  • msg → Message / Content
  • icon → Icon, see Icons for accepted values below.
  • iconType → The Icon at the top-right corner, see Icon Types for accepted values below.

Icons

To specify an icon you can either simply parse an already existing notification image, or you can create a player mugshot with ESX.

Icon Types

  • 1 → Chat Box
  • 2 → Email
  • 3 → Add Friend Request
  • 7 → Right Jumping Arrow
  • 8 → RP Icon
  • 9 → $ Icon