Guest User

Untitled

a guest
Jan 15th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3.  
  4. using CitizenFX.Core;
  5. using CitizenFX.Core.Native;
  6.  
  7. namespace mxfivereborn
  8. {
  9.     public class MyScript : BaseScript
  10.     {
  11.         /// <summary>
  12.         ///     Initialize the script
  13.         /// </summary>
  14.         public MyScript()
  15.         {
  16.             Tick += OnTick;
  17.         }
  18.  
  19.         /// <summary>
  20.         ///     Tick event
  21.         /// </summary>
  22.         private async Task OnTick()
  23.         {
  24.             Debug.Write("Test");
  25.             await Delay(1000);
  26.         }
  27.     }
  28. }
Add Comment
Please, Sign In to add comment