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

OnServerResourceStop

Материал из RAGE MP Wiki Archive
Версия от 01:24, 30 ноября 2019; imported>Spotify (Created page with "This event is triggered when a resource stops. {{CSharpContainer| {{#tag:syntaxhighlight| [ServerEvent(Event.ResourceStopEx)] |lang=csharp }} {{Parameters}} *'''resourceName...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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>