OnServerResourceStop

From GTA Network Wiki
Jump to: navigation, search

OnServerResourceStop
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

This event is triggered when a resource stops.

Attribute

[ServerEvent(Event.ResourceStopEx)]

Required Parameters

  • string: the name of the resource.

Usage example(s)

[ServerEvent(Event.ResourceStopEx)]
public void OnResourceStopEx(string resourceName)
{
   NAPI.Chat.SendChatMessageToAll($"Resource {resourceName} is stopped!");
}

Changelog

Version Description
1.0 Release.

References