OnResourceStop

From RAGE Multiplayer Wiki
Revision as of 01:27, 30 November 2019 by Spotify (talk | contribs) (Created page with "This event is triggered when a resource is stopped and it will handle stuff before the resource termination. {{CSharpContainer| {{#tag:syntaxhighlight| [ServerEvent(Event.Res...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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


C# Syntax

[ServerEvent(Event.ResourceStop)]

Example

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