Skip to main content

ShowNotification

ESX.ShowNotification(msg, time, type)

Example

ESX.ShowNotification("I i ~r~love~s~ donuts", "success", 3000)

Color Codes

~r~ = Red
~b~ = Blue
~g~ = Green
~y~ = Yellow
~p~ = Purple
~c~ = Grey
~m~ = Dark Grey
~u~ = Black
~o~ = Orange

This function shows a notification to the player.

String Types

SyntaxTypes
"info"Info Notification
"success"Success Notification
"error"Error Notification

Arguments

ArgumentData TypeOptionalDefault ValueExplanation
msgstringNo-The message to display
timenumberYes3000For how long the notification should show
TypestringYes"info"What type the notification would be