mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 03:43:15 +08:00
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:
@@ -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."};
|
||||
};
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user