OnResourceStop
Внешний вид
This event is triggered when a resource is stopped and it will handle stuff before the resource termination.
<syntaxhighlight lang="csharp"> [ServerEvent(Event.ResourceStop)] </syntaxhighlight>
Example
<syntaxhighlight lang="csharp"> [ServerEvent(Event.ResourceStop)] public void OnResourceStop() {
NAPI.Util.ConsoleOutput($"My resource was stopped.");
} </syntaxhighlight>