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

OnResourceStop

Материал из RAGE MP Wiki Archive
Версия от 01:27, 30 ноября 2019; imported>Spotify (Created page with "This event is triggered when a resource is stopped and it will handle stuff before the resource termination. {{CSharpContainer| {{#tag:syntaxhighlight| [ServerEvent(Event.Res...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

This event is triggered when a resource is stopped and it will handle stuff before the resource termination.


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

Example

<syntaxhighlight lang="csharp"> [ServerEvent(Event.ResourceStop)] public void OnResourceStop() {

   NAPI.Util.ConsoleOutput($"My resource was stopped.");

} </syntaxhighlight>