ShowNotification
The game’s short notification at the top of the screen.
The one-line toast the game shows for “Game saved” and the like - short, in the game’s look, gone by itself. For a
longer or a placed line use ShowInfoText; for a title with a line under it, ShowObjectiveEvent.
Syntax
Section titled “Syntax”ShowNotification(pid, text)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
text |
string | the line, kept short |
Returns
Section titled “Returns”boolean - false when not connected
Example
Section titled “Example”ShowNotification(pid, "Welcome back, " .. GetPlayerName(pid))See also
Section titled “See also”ShowNotificationForAll · ShowInfoText · ShowGameLog · the GameText and HUD group of the index
