#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" #define IMGUI_DEFINE_MATH_OPERATORS #define _GTA_ #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 #endif #ifdef GTASA #include #include #include #include #include #include #include #include #include #endif #include "../depend/fla/IDaccess.h" #include "../depend/imgui/imgui.h" #include "json.h" #include "hotkeys.h" #include "vkeys.h" #include "resourcestore.h" #include "fontmgr.h" #include "locale.h" #define TEXT(x) Locale::GetText(x).c_str() #define TEXT_S(x) Locale::GetText(x) using namespace plugin; enum eRenderer { Render_DirectX9, Render_DirectX11, Render_Unknown }; extern eRenderer gRenderer; extern std::ofstream gLog; extern CJson gConfig; // Fix function clashes static void SetHelpMessage(const char *message, bool b1 = false, bool b2 = false, bool b3 = false) { #if GTASA CHud::SetHelpMessage(message, b1, b2, b3); #elif GTAVC CHud::SetHelpMessage(message, b1, b2); #else const size_t size = strlen(message)+1; wchar_t* wc = new wchar_t[size]; mbstowcs(wc, message, size); CHud::SetHelpMessage(wc, b1); delete wc; #endif } extern Hotkey aimSkinChanger; extern Hotkey freeCam; extern Hotkey freeCamForward; extern Hotkey freeCamBackward; extern Hotkey freeCamLeft; extern Hotkey freeCamRight; extern Hotkey commandWindow; extern Hotkey fixVeh; extern Hotkey flipVeh; extern Hotkey godMode; extern Hotkey menuOpen; extern Hotkey quickSceenShot; extern Hotkey quickTeleport; extern Hotkey vehEngine; extern Hotkey vehInstantStart; extern Hotkey vehInstantStop;