#pragma once #pragma warning(disable : 4503 4244 4005) #define INPUT_BUFFER_SIZE 64 #define SPAWN_PED_LIMIT 20 #define DISCORD_INVITE "https://discord.gg/ZzW7kmf" #define GITHUB_LINK "https://github.com/user-grinch/Cheat-Menu" #ifdef GTASA #define BY_GAME(sa, vc, iii) sa #elif GTAVC #define BY_GAME(sa, vc, iii) vc #elif GTA3 #define BY_GAME(sa, vc, iii) iii #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef GTA3 #include #include #include #include #endif #ifdef GTASA #include #include #include #include #include #include #include #endif #include "../depend/fla/IDaccess.h" #include "../depend/imgui/imgui.h" #include "hotkeys.h" #include "json.h" #include "resourcestore.h" #include "vKeys.h" using CallbackTable = std::vector>; using namespace plugin; enum eRenderer { Render_DirectX9, Render_DirectX11, Render_Unknown }; static eRenderer gRenderer = Render_Unknown; static std::ofstream gLog = std::ofstream("CheatMenu.log"); // why doesn't this work? // inline CJson gConfig = CJson("config"); extern CJson gConfig; // Fix function clashes static void SetHelpMessage(const char *message, bool b1, bool b2, bool b3) { #if GTASA CHud::SetHelpMessage(message, b1, b2, b3); #elif GTAVC CHud::SetHelpMessage(message, b1, b2); #else // GTA3 const size_t cSize = strlen(message) + 1; wchar_t *wc = new wchar_t[cSize]; mbstowcs(wc, message, cSize); CHud::SetHelpMessage((wchar_t *)wc, b1); #endif }