Перейти к содержанию

OnServerResourceStop

Материал из RAGE MP Wiki Archive

This event is triggered when a resource stops.


<syntaxhighlight lang="csharp"> [ServerEvent(Event.ResourceStopEx)] </syntaxhighlight>

Parameters

  • resourceName: parameter input should be in string type

Example

<syntaxhighlight lang="csharp"> [ServerEvent(Event.ResourceStopEx)] public void OnResourceStopEx(string resourceName) {

   NAPI.Util.ConsoleOutput($"Resource: {resourceName} has been stopped.");

} </syntaxhighlight>