FivePD API
Interfaces

INetworkEventService

Service for handling network events.

Methods

TriggerEvent

Triggers a network event for a specific player.

Parameters

NameTypeDescription
playerPlayerThe player to trigger the event for.
guidstringThe unique identifier of the event.
argsparams object[]The arguments to pass with the event.

TriggerEventSerialized

Triggers a serialized network event for a specific player.

Parameters

NameTypeDescription
playerPlayerThe player to trigger the event for.
guidstringThe unique identifier of the event.
objobjectThe object to serialize and pass with the event.

TriggerEventWithResponse

Triggers a network event with a response for a specific player.

Parameters

NameTypeDescription
playerPlayerThe player to trigger the event for.
guidstringThe unique identifier of the event.
statusboolThe status of the response.
titlestringThe title of the response.
descriptionstringThe description of the response.
paramsDictionary<string, string>The parameters of the response.

TriggerEventWithUnexpectedError

Triggers a network event with an unexpected error for a specific player.

Parameters

NameTypeDescription
playerPlayerThe player to trigger the event for.
guidstringThe unique identifier of the event.