Class Notification
Methods to manage the display of notifications above the minimap.
Inherited Members
Namespace: GTA.UI
Assembly: ScriptHookVDotNet3.dll
Syntax
public static class Notification
Methods
| Improve this Doc View SourceHide(Int32)
Hides a Notification instantly.
Declaration
public static void Hide(int handle)
Parameters
Type | Name | Description |
---|---|---|
Int32 | handle | The handle of the Notification to hide. |
Show(NotificationIcon, String, String, String, Boolean, Boolean)
Creates a more advanced (SMS-alike) Notification above the minimap showing a sender icon, subject and the message.
Declaration
public static int Show(NotificationIcon icon, string sender, string subject, string message, bool fadeIn = false, bool blinking = false)
Parameters
Type | Name | Description |
---|---|---|
NotificationIcon | icon | The notification icon. |
String | sender | The sender name. |
String | subject | The subject line. |
String | message | The message itself. |
Boolean | fadeIn | If true the message will fade in. |
Boolean | blinking | if set to true the notification will blink. |
Returns
Type | Description |
---|---|
Int32 | The handle of the Notification which can be used to hide it using Hide(Int32). |
Show(String, Boolean)
Creates a Notification above the minimap with the given message.
Declaration
public static int Show(string message, bool blinking = false)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message in the notification. |
Boolean | blinking | if set to true the notification will blink. |
Returns
Type | Description |
---|---|
Int32 | The handle of the Notification which can be used to hide it using Hide(Int32). |