From 4e0b21dece356512f9b8775b6a74205a419a41a5 Mon Sep 17 00:00:00 2001 From: opencode Date: Mon, 30 Nov 2026 16:59:57 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20trainer=20section=20in=20the=20debug=20?= =?UTF-8?q?menu=20=E2=80=94=20weapons,=20money,=20health,=20wanted=20(issu?= =?UTF-8?q?e=20#34)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/re3.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/re3.cpp b/src/core/re3.cpp index 755f69c2..c5aabab0 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -15,6 +15,7 @@ #include "Weather.h" #include "Clock.h" #include "World.h" +#include "Wanted.h" #include "Vehicle.h" #include "ModelIndices.h" #include "Streaming.h" @@ -915,6 +916,13 @@ DebugMenuPopulate(void) DebugMenuAddCmd("Cheats", "Strong grip", StrongGripCheat); DebugMenuAddCmd("Cheats", "Nasty limbs", NastyLimbsCheat); + // Trainer shortcuts, built from the existing cheat handlers + DebugMenuAddCmd("Trainer", "Give all weapons", WeaponCheat); + DebugMenuAddCmd("Trainer", "+Money", MoneyCheat); + DebugMenuAddCmd("Trainer", "Full health + armour", [](){ HealthCheat(); ArmourCheat(); }); + DebugMenuAddCmd("Trainer", "Wanted: clear", WantedLevelDownCheat); + DebugMenuAddCmd("Trainer", "Wanted: maximum", [](){ FindPlayerPed()->SetWantedLevel(CWanted::MaximumWantedLevel); }); + // Compile-time modern gameplay guards, shown for reference only static bool bModernGameplay = #ifdef MODERN_GAMEPLAY