Tidy up weapon code and data dumper

This commit is contained in:
sardelka9515
2022-11-16 17:37:31 +08:00
parent 822a69573f
commit 50153d860a
35 changed files with 323192 additions and 743 deletions

View File

@ -9,6 +9,7 @@ using GTA.Native;
using RageCoop.Client.CefHost;
using RageCoop.Client.Scripting;
using RageCoop.Core;
using static RageCoop.Client.Shared;
namespace RageCoop.Client.GUI
{
@ -27,23 +28,13 @@ namespace RageCoop.Client.GUI
{
Main.CefRunning = true;
HookManager.Initialize();
CefController.Initialize(@"RageCoop\SubProcess\RageCoop.Client.CefHost.exe");
CefController.Initialize(CefSubProcessPath);
CefController.OnCefMessage = m => API.Logger.Debug(m);
HookManager.AddOverLay(CefOverlay);
}
public static CefClient ActiveClient { get; set; }
public static void Test()
{
var c = CreateClient(new Size(640, 480));
c.Scale = 0.8f;
c.Opacity = 128;
Script.Wait(2000);
c.Controller.LoadUrl("https://ragecoop.online/");
ActiveClient = c;
}
public static void Tick()
{
if (ActiveClient != null)