Skip to content

Commit

Permalink
Update ClearCrimes.cpp (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadlineem authored Mar 21, 2024
1 parent d28e2d9 commit ced81a6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
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 @@ -104,4 +105,4 @@ namespace YimMenu::Submenus

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

0 comments on commit ced81a6

Please sign in to comment.