Skip to main content

OnResourceStop

This event is triggered when a resource is stopped and it will handle stuff before the resource termination.

C#​

[ServerEvent(Event.ResourceStop)]

Example​

[ServerEvent(Event.ResourceStop)]
public void OnResourceStop()
{
NAPI.Util.ConsoleOutput($"My resource was stopped.");
}