feat: trainer section in the debug menu — weapons, money, health, wanted (issue #34)
linux / build (push) Canceled after 12m25s

This commit is contained in:
2026-11-30 16:59:57 +00:00
parent a36d08a09c
commit 4e0b21dece
+8
View File
@@ -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