Skip to content

Update ClearCrimes.cpp #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/game/features/self/ClearCrimes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ namespace YimMenu::Features
virtual void OnCall() override
{
char guid[0x20];
BOUNTY::_BOUNTY_REQUEST_SERVED_FULL_JAIL_SENTENCE(guid);
BOUNTY::_BOUNTY_REQUEST_PAY_OFF_BOUNTY(guid); // Pays bounty from your wallet like visiting the post clerk
}
};

static ClearCrimes _ClearCrimes{"clearcrimes", "Clear Crimes", "Clears all crimes and removes all active bounties"};
}
static ClearCrimes _ClearCrimes{"clearcrimes", "Pay Bounties", "Pays all active bounties (Like a mobile post clerk)"};
}
25 changes: 25 additions & 0 deletions src/game/features/self/NeverWanted.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include "core/commands/LoopedCommand.hpp"
#include "game/features/Features.hpp"
#include "game/rdr/Natives.hpp"

namespace YimMenu::Features
{
class NeverWanted : public LoopedCommand
{
using LoopedCommand::LoopedCommand;

virtual void OnTick() override
{
// Set the wanted level multiplier to 0 (Never Wanted)
PLAYER::SET_WANTED_LEVEL_MULTIPLIER(0.0f);
}

virtual void OnDisable() override
{
// Reset the wanted level multiplier to 1.0f (normal behavior)
PLAYER::SET_WANTED_LEVEL_MULTIPLIER(1.0f);
}
};

static NeverWanted _NeverWanted{"neverwanted", "Never Wanted", "Toggle Never Wanted mode"};
}
3 changes: 2 additions & 1 deletion src/game/frontend/submenus/Self.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ namespace YimMenu::Submenus
auto columns = std::make_shared<Column>(2);

globalsGroup->AddItem(std::make_shared<BoolCommandItem>("godmode"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("neverwanted"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("invis"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("offtheradar"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("noragdoll"_J));
Expand Down Expand Up @@ -103,4 +104,4 @@ namespace YimMenu::Submenus

AddCategory(std::move(animations));
}
}
}
Loading