diff --git a/src/game/features/recovery/CayoPericoCooldown.cpp b/src/game/features/recovery/CayoPericoCooldown.cpp new file mode 100644 index 0000000..ea299e4 --- /dev/null +++ b/src/game/features/recovery/CayoPericoCooldown.cpp @@ -0,0 +1,22 @@ +#include "core/commands/Command.hpp" +#include "game/gta/Stats.hpp" + +namespace YimMenu::Features +{ + class CayoPericoCooldown : public Command + { + using Command::Command; + + virtual void OnCall() override + { + Stats::SetInt("MPX_H4_TARGET_POSIX", 1659643454); + Stats::SetInt("MPX_H4_COOLDOWN", 0); + Stats::SetInt("MPX_H4_COOLDOWN_HARD", 0); + Stats::SetInt("MPX_H4_TARGET_POSIX", 1659429119); + Stats::SetInt("MPX_H4_COOLDOWN", 0); + Stats::SetInt("MPX_H4_COOLDOWN_HARD", 0); + } + }; + + static CayoPericoCooldown _CayoPericoCooldown{"skipcayocooldown", "Cooldown skip for Cayo Perico Heist", "Skips the cooldown between each Cayo Perico heist."}; +} \ No newline at end of file diff --git a/src/game/features/recovery/CayoPericoSetup.cpp b/src/game/features/recovery/CayoPericoSetup.cpp new file mode 100644 index 0000000..c615bd1 --- /dev/null +++ b/src/game/features/recovery/CayoPericoSetup.cpp @@ -0,0 +1,47 @@ +#include "core/commands/Command.hpp" +#include "game/gta/Stats.hpp" + +namespace YimMenu::Features +{ + class CayoPericoSetup : public Command + { + using Command::Command; + + virtual void OnCall() override + { + Stats::SetInt("MPX_H4CNF_BS_GEN", 131071); + Stats::SetInt("MPX_H4CNF_BS_ENTR", 63); + Stats::SetInt("MPX_H4CNF_BS_ABIL", 63); + Stats::SetInt("MPX_H4CNF_WEAPONS", 2); + Stats::SetInt("MPX_H4CNF_WEP_DISRP", 3); + Stats::SetInt("MPX_H4CNF_ARM_DISRP", 3); + Stats::SetInt("MPX_H4CNF_HEL_DISRP", 3); + Stats::SetInt("MPX_H4CNF_TARGET", 5); + Stats::SetInt("MPX_H4CNF_TROJAN", 4); + Stats::SetInt("MPX_H4CNF_APPROACH", -1); + Stats::SetInt("MPX_H4LOOT_CASH_I", 0); + Stats::SetInt("MPX_H4LOOT_CASH_C", 0); + Stats::SetInt("MPX_H4LOOT_WEED_I", 0); + Stats::SetInt("MPX_H4LOOT_WEED_C", 0); + Stats::SetInt("MPX_H4LOOT_COKE_I", 0); + Stats::SetInt("MPX_H4LOOT_COKE_C", 0); + Stats::SetInt("MPX_H4LOOT_GOLD_I", -1); + Stats::SetInt("MPX_H4LOOT_GOLD_C", -1); + Stats::SetInt("MPX_H4LOOT_PAINT", -1); + Stats::SetInt("MPX_H4_PROGRESS", 131055); + Stats::SetInt("MPX_H4LOOT_CASH_I_SCOPED", 0); + Stats::SetInt("MPX_H4LOOT_CASH_C_SCOPED", 0); + Stats::SetInt("MPX_H4LOOT_WEED_I_SCOPED", 0); + Stats::SetInt("MPX_H4LOOT_WEED_C_SCOPED", 0); + Stats::SetInt("MPX_H4LOOT_COKE_I_SCOPED", 0); + Stats::SetInt("MPX_H4LOOT_COKE_C_SCOPED", 0); + Stats::SetInt("MPX_H4LOOT_GOLD_I_SCOPED", -1); + Stats::SetInt("MPX_H4LOOT_GOLD_C_SCOPED", -1); + Stats::SetInt("MPX_H4LOOT_PAINT_SCOPED", -1); + Stats::SetInt("MPX_H4_MISSIONS", 65535); + Stats::SetInt("MPX_H4_PLAYTHROUGH_STATUS", 40000); + } + }; + + static CayoPericoSetup _CayoPericoSetup{"skipcayosetup", "Setup Cayo Perico Heist", "Gives the best cayo perico loadout."}; +} \ No newline at end of file diff --git a/src/game/frontend/submenus/Recovery.cpp b/src/game/frontend/submenus/Recovery.cpp index e02f5f7..5cd591e 100644 --- a/src/game/frontend/submenus/Recovery.cpp +++ b/src/game/frontend/submenus/Recovery.cpp @@ -10,7 +10,9 @@ namespace YimMenu::Submenus Submenu::Submenu("Recovery") { auto shopping = std::make_shared("Shopping"); + auto heist = std::make_shared("Heists"); auto vehiclesGroup = std::make_shared("Vehicles"); + auto heistGroup = std::make_shared("Heist"); vehiclesGroup->AddItem(std::make_shared("dlcvehicles"_J)); @@ -23,9 +25,13 @@ namespace YimMenu::Submenus } } })); + heistGroup->AddItem(std::make_shared("skipcayosetup"_J)); + heistGroup->AddItem(std::make_shared("skipcayocooldown"_J)); shopping->AddItem(vehiclesGroup); + heist->AddItem(heistGroup); AddCategory(std::move(shopping)); + AddCategory(std::move(heist)); AddCategory(BuildStatEditorMenu()); AddCategory(BuildTransactionsMenu()); }