Skip to main content

OnResourceStart

This event is triggered when a resource is started and it will handle stuff after the resource has been initiated.

C#​

[ServerEvent(Event.ResourceStart)]

Example​

[ServerEvent(Event.ResourceStart)]
public void OnResourceStart()
{
NAPI.Util.ConsoleOutput($"My resource has started :).");
}