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

OnUpdate

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

This event is used for iterating code at server's tickrate.


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

Example

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

   NAPI.Util.ConsoleOutput($"This should be called at the server tickrate.");

} </syntaxhighlight>