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

OnResourceStart

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

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


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

Example

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

   NAPI.Util.ConsoleOutput($"My resource has started :).");

} </syntaxhighlight>