diff --git a/src/game/features/self/DisableActionMode.cpp b/src/game/features/self/DisableActionMode.cpp new file mode 100644 index 0000000..269215d --- /dev/null +++ b/src/game/features/self/DisableActionMode.cpp @@ -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."}; +}; diff --git a/src/game/features/self/StandOnVehicles.cpp b/src/game/features/self/StandOnVehicles.cpp new file mode 100644 index 0000000..be56ecf --- /dev/null +++ b/src/game/features/self/StandOnVehicles.cpp @@ -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."}; +}; diff --git a/src/game/features/vehicle/AllowHatsInVehicles.cpp b/src/game/features/vehicle/AllowHatsInVehicles.cpp new file mode 100644 index 0000000..72f9aba --- /dev/null +++ b/src/game/features/vehicle/AllowHatsInVehicles.cpp @@ -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."}; +}; diff --git a/src/game/frontend/submenus/Self.cpp b/src/game/frontend/submenus/Self.cpp index 8bb8f89..caa9472 100644 --- a/src/game/frontend/submenus/Self.cpp +++ b/src/game/frontend/submenus/Self.cpp @@ -43,6 +43,8 @@ namespace YimMenu::Submenus toolsGroup->AddItem(std::make_shared("cleardamage"_J)); toolsGroup->AddItem(std::make_shared("fillinventory"_J)); + movementGroup->AddItem(std::make_shared("standonvehicles"_J)); + movementGroup->AddItem(std::make_shared("disableactionmode"_J)); movementGroup->AddItem(std::make_shared("superrun"_J)); movementGroup->AddItem(std::make_shared("superjump"_J)); movementGroup->AddItem(std::make_shared("noclip"_J)); @@ -82,6 +84,7 @@ namespace YimMenu::Submenus vehicleMiscGroup->AddItem(std::make_shared("speedometer"_J)); vehicleMiscGroup->AddItem(std::make_shared("seatbelt"_J)); + vehicleMiscGroup->AddItem(std::make_shared("allowhatsinvehicles"_J)); vehicle->AddItem(vehicleGlobalsGroup); vehicle->AddItem(vehicleMiscGroup);