FivePD API
Interfaces

IConfirmationService

Provides methods for triggering a confirmation on the client.

Methods

TriggerConfirmation

Displays a tooltip (if not null) and a notification (if not null) to the player and waits for a keypress, then responds with a boolean.

Parameters

NameTypeDescription
playerPlayerThe player to trigger the confirmation for.
propertiesConfirmationPropertiesThe properties of the confirmation notifications.
callbackAction<bool>The callback to invoke at response.

TriggerConfirmation

Displays a tooltip (if not null) and a notification (if not null) to the player and waits for a keypress, then responds with a boolean.

Parameters

NameTypeDescription
playerFPlayerThe player to trigger the confirmation for.
propertiesConfirmationPropertiesThe properties of the confirmation notifications.
callbackAction<bool>The callback to invoke at response.

TriggerConfirmation

Displays a tooltip (if not null) and a notification (if not null) to the players of the unit and waits for a keypress, then responds with a boolean.

Parameters

NameTypeDescription
unitUnitThe unit to trigger the confirmation for.
propertiesConfirmationPropertiesThe properties of the confirmation notifications.
callbackAction<bool>The callback to invoke at response.

TriggerConfirmationAsync

Displays a tooltip (if not null) and a notification (if not null) to the player and waits for a keypress, then responds with a boolean.

Parameters

NameTypeDescription
playerPlayerThe player to trigger the confirmation for.
propertiesConfirmationPropertiesThe properties of the confirmation notifications.

Returns

NameType
Task<bool>A representing the asynchronous operation.

TriggerConfirmationAsync

Displays a tooltip (if not null) and a notification (if not null) to the player and waits for a keypress, then responds with a boolean.

Parameters

NameTypeDescription
playerFPlayerThe player to trigger the confirmation for.
propertiesConfirmationPropertiesThe properties of the confirmation notifications.

Returns

NameType
Task<bool>A representing the asynchronous operation.