INotificationService
Responsible for displaying base GTA notifications.
Methods
ShowTooltip
Displays a tooltip (small notification in the top-left corner) for the specified player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player which the tooltip will be displayed for. |
| content | string | The text that'll be displayed. |
| withBeep | bool | If the notification should play a beep sound. |
| duration | int | The duration in ms. |
ShowTooltip
Displays a tooltip (small notification in the top-left corner) for the specified player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player which the tooltip will be displayed for. |
| content | string | The text that'll be displayed. |
| withBeep | bool | If the notification should play a beep sound. |
| duration | int | The duration in ms. |
ShowNotification
Displays a notification for the specified player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player which the notification will be displayed for. |
| content | string | The text that'll be displayed. |
ShowNotification
Displays a notification for the specified player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player which the notification will be displayed for. |
| content | string | The text that'll be displayed. |
ShowNotification
Displays a notification for the specified players.
Parameters
| Name | Type | Description |
|---|---|---|
| players | IEnumerable<Player> | The players which the notification will be displayed for. |
| content | string | The text that'll be displayed. |
ShowNotification
Displays a notification for the specified players.
Parameters
| Name | Type | Description |
|---|---|---|
| players | IEnumerable<FPlayer> | The players which the notification will be displayed for. |
| content | string | The text that'll be displayed. |
ShowNotificationWithTexture
Displays a notification with a texture for the specified player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player which the notification will be displayed for. |
| texture | string | The texture's name which is the top-left image in the notification. |
| sender | string | The sender of the notification, will be displayed on the first line. |
| subject | string | The subject of the notification, will be displayed on the second line. |
| content | string | The text that'll be displayed. |
ShowNotificationWithTexture
Displays a notification with a texture for the specified player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player which the notification will be displayed for. |
| texture | string | The texture's name which is the top-left image in the notification. |
| sender | string | The sender of the notification, will be displayed on the first line. |
| subject | string | The subject of the notification, will be displayed on the second line. |
| content | string | The text that'll be displayed. |
ShowNotificationWithTexture
Displays a notification with a texture for the specified players.
Parameters
| Name | Type | Description |
|---|---|---|
| players | IEnumerable<Player> | The player which the notification will be displayed for. |
| texture | string | The texture's name which is the top-left image in the notification. |
| sender | string | The sender of the notification, will be displayed on the first line. |
| subject | string | The subject of the notification, will be displayed on the second line. |
| content | string | The text that'll be displayed. |
ShowNotificationWithTexture
Displays a notification with a texture for the specified players.
Parameters
| Name | Type | Description |
|---|---|---|
| players | IEnumerable<FPlayer> | The player which the notification will be displayed for. |
| texture | string | The texture's name which is the top-left image in the notification. |
| sender | string | The sender of the notification, will be displayed on the first line. |
| subject | string | The subject of the notification, will be displayed on the second line. |
| content | string | The text that'll be displayed. |