Skip to main content

showNotification

TriggerClientEvent('esx:showNotification', source, 'Hello world!', 'info', time)

Color Codes

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

This event shows a basic notification to the player. This is what you'll want to use server side when you wan to send a notification.

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

Note

Do not use this event for client side, instead use ESX.ShowNotification