Update 07.12.2022
This commit is contained in:
28
C#/FiveM/Framework/Framework.Client/Client.cs
Normal file
28
C#/FiveM/Framework/Framework.Client/Client.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma warning disable CS1998
|
||||
|
||||
using System;
|
||||
using CitizenFX.Core;
|
||||
using Framework.Client.Handler;
|
||||
using NativeUI;
|
||||
|
||||
namespace Framework.Client {
|
||||
public class Client : ClientScript {
|
||||
public static Client Instance;
|
||||
public static MenuPool Menus;
|
||||
|
||||
public Client() {
|
||||
Instance = this;
|
||||
Menus = new MenuPool();
|
||||
|
||||
JoinHandler.Init();
|
||||
|
||||
EventHandlers["client:spawn:register"] += new Action(JoinHandler.Register);
|
||||
EventHandlers["client:spawn:choose"] += new Action<dynamic[]>(JoinHandler.ChooseChar);
|
||||
|
||||
Tick += async () => {
|
||||
Menus.ProcessMenus();
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user