From 8aadf51311037a9802c67e6d39d2bed226dd5670 Mon Sep 17 00:00:00 2001 From: maybegreat48 <96936658+maybegreat48@users.noreply.github.com> Date: Wed, 4 Jun 2025 19:32:09 -0400 Subject: [PATCH] feat(menu): add additional open key for keyboards without a numpad --- README.md | 4 ++++ src/game/frontend/GUI.cpp | 3 ++- src/game/frontend/Onboarding.cpp | 2 +- src/game/frontend/submenus/Recovery/Transactions.cpp | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a4e9dcd..ccf8419 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,10 @@ Experimental menu for GTA 5: Enhanced 4. Open Rockstar Launcher, select Grand Theft Auto V Enhanced, go to settings, and disable BattlEye. If you are using Steam or Epic Games, you may have to pass the -nobattleye command line parameter as well 5. Launch GTA V, then use your injector to inject YimMenuV2.dll at the main menu +## How to open the menu? + +Press the `INSERT` key or `Ctrl+\` to open the menu + ## Common issues ### I keep getting desynced from public sessions every five minutes diff --git a/src/game/frontend/GUI.cpp b/src/game/frontend/GUI.cpp index 2958a94..1ed7812 100644 --- a/src/game/frontend/GUI.cpp +++ b/src/game/frontend/GUI.cpp @@ -59,7 +59,8 @@ namespace YimMenu void GUI::WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { - if (msg == WM_KEYUP && wparam == VK_INSERT) + if (msg == WM_KEYUP + && (wparam == VK_INSERT || (wparam == VK_OEM_5 && (GetKeyState(VK_CONTROL) & 0x8000) != 0))) { // Persist and restore the cursor position between menu instances static POINT CursorCoords{}; diff --git a/src/game/frontend/Onboarding.cpp b/src/game/frontend/Onboarding.cpp index 28d809d..6b3e43a 100644 --- a/src/game/frontend/Onboarding.cpp +++ b/src/game/frontend/Onboarding.cpp @@ -30,7 +30,7 @@ namespace YimMenu if (ImGui::BeginPopupModal("IMPORTANT! PLEASE READ!", nullptr, ImGuiWindowFlags_NoSavedSettings)) { ImGui::TextWrapped("%s", - "Welcome to YimMenuV2! With the introduction of BattlEye, the ability to join and stay in public sessions has been severely limited. " + "Welcome to YimMenuV2! You can press INSERT or Ctrl+\\ to open the menu. With the introduction of BattlEye, the ability to join and stay in public sessions has been severely limited. " "You have an option to play only with other YimMenu users, or you can choose to connect to regular BattlEye-protected sessions. " "You will automatically be kicked out of regular sessions in under three minutes, and you may be temporarily blacklisted from " "joining for up to two days, even after re-enabling BattlEye" diff --git a/src/game/frontend/submenus/Recovery/Transactions.cpp b/src/game/frontend/submenus/Recovery/Transactions.cpp index 5be2447..27bebd2 100644 --- a/src/game/frontend/submenus/Recovery/Transactions.cpp +++ b/src/game/frontend/submenus/Recovery/Transactions.cpp @@ -311,7 +311,7 @@ namespace YimMenu::Submenus return hash == "CATEGORY_PRICE_MODIFIER"_J || hash == "CATEGORY_PRICE_OVERRIDE"_J; } - bool ShouldSwapItemParams(std::uint32_t hash) // Position - 0x3815F (229727) + bool ShouldSwapItemParams(std::uint32_t hash) { switch (hash) {