OnServerResourceStart

From GTA Network Wiki
Jump to: navigation, search

OnServerResourceStart
Server-Side Function

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

This event is triggered when a resource starts.

Attribute

[ServerEvent(Event.ResourceStartEx)]

Required Parameters

  • string: name of the resource.

Usage example(s)

[ServerEvent(Event.ResourceStartEx)]
public void OnResourceStartEx(string resourceName)
{
   NAPI.Chat.SendChatMessageToAll($"Resource {resourceName} got started!");
}

Changelog

Version Description
1.0 Release.

References