OnResourceStop
This event is triggered when a resource is stopped and it will handle stuff before the resource termination.
{{#tag:syntaxhighlight| [ServerEvent(Event.ResourceStop)] public void OnResourceStop() {
NAPI.Util.ConsoleOutput($"My resource was stopped.");
} |lang=csharp}} }}