2020-12-02 16:19:16 -05:00
|
|
|
/*
|
|
|
|
Required:
|
2021-01-07 16:07:45 -05:00
|
|
|
DirectX 9 SDK
|
2020-12-02 16:19:16 -05:00
|
|
|
Plugin SDK
|
2021-01-07 16:07:45 -05:00
|
|
|
Visual Studio 2019 (v142)
|
|
|
|
Windows SDK
|
2020-12-02 16:19:16 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "Animation.h"
|
|
|
|
#include "Game.h"
|
|
|
|
#include "Hook.h"
|
|
|
|
#include "Menu.h"
|
|
|
|
#include "Ped.h"
|
|
|
|
#include "Player.h"
|
|
|
|
#include "Teleport.h"
|
|
|
|
#include "Vehicle.h"
|
|
|
|
#include "Visual.h"
|
|
|
|
#include "Weapon.h"
|
|
|
|
|
|
|
|
class CheatMenu : Hook, Animation, Game, Menu, Ped, Player, Teleport, Vehicle, Visual, Weapon
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
static unsortedMap header;
|
|
|
|
static void ProcessMenu();
|
|
|
|
static void ProcessWindow();
|
|
|
|
static void ApplyImGuiStyle();
|
|
|
|
|
|
|
|
public:
|
|
|
|
CheatMenu();
|
|
|
|
~CheatMenu();
|
|
|
|
};
|
|
|
|
|
|
|
|
class Launcher
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Launcher()
|
|
|
|
{
|
2020-12-10 14:36:18 -05:00
|
|
|
Events::initRwEvent += []()
|
2020-12-02 16:19:16 -05:00
|
|
|
{
|
2020-12-10 14:36:18 -05:00
|
|
|
bool launch = true;
|
|
|
|
uint gameVersion = GetGameVersion();
|
|
|
|
if (gameVersion != GAME_10US_HOODLUM && gameVersion != GAME_10US_COMPACT) {
|
|
|
|
MessageBox(HWND_DESKTOP, "CheatMenu requires v1.0 US of the game.", "CheatMenu", MB_ICONERROR);
|
|
|
|
launch = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GetModuleHandleA("SAMP.dll")) {
|
|
|
|
MessageBox(HWND_DESKTOP, "SAMP detected. Exiting CheatMenu.", "CheatMenu", MB_ICONERROR);
|
|
|
|
launch = false;
|
|
|
|
}
|
|
|
|
|
2020-12-24 14:31:26 -05:00
|
|
|
/*
|
2021-01-07 16:07:45 -05:00
|
|
|
Mouse is extremely buggy without SilentPatch
|
2020-12-24 14:31:26 -05:00
|
|
|
Should have a better fix for this but everyone should have
|
|
|
|
SilentPatch installed so mehh...
|
|
|
|
*/
|
|
|
|
if (!GetModuleHandleA("SilentPatchSA.asi")) {
|
|
|
|
MessageBox(HWND_DESKTOP, "SilentPatch isn't installed. Exiting CheatMenu.", "CheatMenu", MB_ICONERROR);
|
|
|
|
launch = false;
|
|
|
|
}
|
|
|
|
|
2020-12-10 14:36:18 -05:00
|
|
|
if (launch)
|
2020-12-02 16:19:16 -05:00
|
|
|
{
|
2020-12-10 14:36:18 -05:00
|
|
|
flog << "Loading CheatMenu" << std::endl;
|
2021-01-09 15:06:53 -05:00
|
|
|
CFastman92limitAdjuster::Init();
|
2020-12-10 14:36:18 -05:00
|
|
|
static CheatMenu cheatmenu;
|
|
|
|
}
|
|
|
|
};
|
2020-12-02 16:19:16 -05:00
|
|
|
}
|
|
|
|
} launcher;
|
|
|
|
|