28 lines
698 B
C#
28 lines
698 B
C#
#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();
|
|
};
|
|
}
|
|
|
|
}
|
|
} |