feat(Various): 3 New Features (#117)

- Self: Stand On Vehicles: This was requested a long time ago in Legacy YimMenu but was never added.
- Self: Disable Action Mode: Disables the player's forced weird stance during combat.
- Vehicle: Allow Hats Inside Vehicles: Prevents the player's headgear from being removed when they enter a vehicle.
This commit is contained in:
SAMURAI
2025-04-07 22:04:51 +01:00
committed by GitHub
parent 802c75b270
commit 4801992b22
4 changed files with 57 additions and 0 deletions
@@ -0,0 +1,18 @@
#include "core/commands/LoopedCommand.hpp"
#include "game/backend/Self.hpp"
#include "game/gta/Natives.hpp"
namespace YimMenu::Features
{
class DisableActionMode : public LoopedCommand
{
using LoopedCommand::LoopedCommand;
virtual void OnTick() override
{
PED::SET_PED_RESET_FLAG(Self::GetPed().GetHandle(), 200, true);
}
};
static DisableActionMode _DisableActionMode{"disableactionmode", "Disable Action Mode", "Disables the player's janky movement during combat."};
};
@@ -0,0 +1,18 @@
#include "core/commands/LoopedCommand.hpp"
#include "game/backend/Self.hpp"
#include "game/gta/Natives.hpp"
namespace YimMenu::Features
{
class StandOnVehicles : public LoopedCommand
{
using LoopedCommand::LoopedCommand;
virtual void OnTick() override
{
PED::SET_PED_RESET_FLAG(Self::GetPed().GetHandle(), 274, true);
}
};
static StandOnVehicles _StandOnVehicles{"standonvehicles", "Stand On Vehicles", "Prevents you from ragdolling when standing on top of vehicles."};
};
@@ -0,0 +1,18 @@
#include "core/commands/LoopedCommand.hpp"
#include "game/backend/Self.hpp"
#include "game/gta/Natives.hpp"
namespace YimMenu::Features
{
class AllowHatsInVehicles : public LoopedCommand
{
using LoopedCommand::LoopedCommand;
virtual void OnTick() override
{
PED::SET_PED_RESET_FLAG(Self::GetPed().GetHandle(), 337, true);
}
};
static AllowHatsInVehicles _AllowHatsInVehicles{"allowhatsinvehicles", "Allow Hats In Vehicles", "Allows you to keep your hats or head gear inside vehicles."};
};
+3
View File
@@ -43,6 +43,8 @@ namespace YimMenu::Submenus
toolsGroup->AddItem(std::make_shared<CommandItem>("cleardamage"_J));
toolsGroup->AddItem(std::make_shared<CommandItem>("fillinventory"_J));
movementGroup->AddItem(std::make_shared<BoolCommandItem>("standonvehicles"_J));
movementGroup->AddItem(std::make_shared<BoolCommandItem>("disableactionmode"_J));
movementGroup->AddItem(std::make_shared<BoolCommandItem>("superrun"_J));
movementGroup->AddItem(std::make_shared<BoolCommandItem>("superjump"_J));
movementGroup->AddItem(std::make_shared<BoolCommandItem>("noclip"_J));
@@ -82,6 +84,7 @@ namespace YimMenu::Submenus
vehicleMiscGroup->AddItem(std::make_shared<BoolCommandItem>("speedometer"_J));
vehicleMiscGroup->AddItem(std::make_shared<BoolCommandItem>("seatbelt"_J));
vehicleMiscGroup->AddItem(std::make_shared<BoolCommandItem>("allowhatsinvehicles"_J));
vehicle->AddItem(vehicleGlobalsGroup);
vehicle->AddItem(vehicleMiscGroup);