OnServerResourceStop

From GT-MP
Jump to: navigation, search
OnServerResourceStop
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

This event is triggered when a resource stops.

Requirements

First of all, it should be defined in your Main constructor for it to be called, otherwise it wouldn't be initiated at all!

public Main()
{
    API.onServerResourceStop += OnServerResourceStopHandler;
}

Usage example(s)

private void OnServerResourceStopHandler(string resource)
{
    // Code
}

References