FivePD API
Interfaces

INotificationService

Responsible for displaying base GTA notifications.

Methods

ShowTooltip

Displays a tooltip (small notification in the top-left corner) for the specified player.

Parameters

NameTypeDescription
playerPlayerThe player which the tooltip will be displayed for.
contentstringThe text that'll be displayed.
withBeepboolIf the notification should play a beep sound.
durationintThe duration in ms.

ShowTooltip

Displays a tooltip (small notification in the top-left corner) for the specified player.

Parameters

NameTypeDescription
playerFPlayerThe player which the tooltip will be displayed for.
contentstringThe text that'll be displayed.
withBeepboolIf the notification should play a beep sound.
durationintThe duration in ms.

ShowNotification

Displays a notification for the specified player.

Parameters

NameTypeDescription
playerPlayerThe player which the notification will be displayed for.
contentstringThe text that'll be displayed.

ShowNotification

Displays a notification for the specified player.

Parameters

NameTypeDescription
playerFPlayerThe player which the notification will be displayed for.
contentstringThe text that'll be displayed.

ShowNotification

Displays a notification for the specified players.

Parameters

NameTypeDescription
playersIEnumerable<Player>The players which the notification will be displayed for.
contentstringThe text that'll be displayed.

ShowNotification

Displays a notification for the specified players.

Parameters

NameTypeDescription
playersIEnumerable<FPlayer>The players which the notification will be displayed for.
contentstringThe text that'll be displayed.

ShowNotificationWithTexture

Displays a notification with a texture for the specified player.

Parameters

NameTypeDescription
playerPlayerThe player which the notification will be displayed for.
texturestringThe texture's name which is the top-left image in the notification.
senderstringThe sender of the notification, will be displayed on the first line.
subjectstringThe subject of the notification, will be displayed on the second line.
contentstringThe text that'll be displayed.

ShowNotificationWithTexture

Displays a notification with a texture for the specified player.

Parameters

NameTypeDescription
playerFPlayerThe player which the notification will be displayed for.
texturestringThe texture's name which is the top-left image in the notification.
senderstringThe sender of the notification, will be displayed on the first line.
subjectstringThe subject of the notification, will be displayed on the second line.
contentstringThe text that'll be displayed.

ShowNotificationWithTexture

Displays a notification with a texture for the specified players.

Parameters

NameTypeDescription
playersIEnumerable<Player>The player which the notification will be displayed for.
texturestringThe texture's name which is the top-left image in the notification.
senderstringThe sender of the notification, will be displayed on the first line.
subjectstringThe subject of the notification, will be displayed on the second line.
contentstringThe text that'll be displayed.

ShowNotificationWithTexture

Displays a notification with a texture for the specified players.

Parameters

NameTypeDescription
playersIEnumerable<FPlayer>The player which the notification will be displayed for.
texturestringThe texture's name which is the top-left image in the notification.
senderstringThe sender of the notification, will be displayed on the first line.
subjectstringThe subject of the notification, will be displayed on the second line.
contentstringThe text that'll be displayed.