Files
YimMenuV2/src/game/features/self/NoRagdoll.cpp
T
2025-03-16 23:13:32 -04:00

28 lines
525 B
C++

#include "core/commands/LoopedCommand.hpp"
#include "game/backend/Self.hpp"
namespace YimMenu::Features
{
class NoRagdoll : public LoopedCommand
{
using LoopedCommand::LoopedCommand;
virtual void OnTick() override
{
if (!Self::GetPed())
return;
Self::GetPed().SetRagdoll(false);
}
virtual void OnDisable() override
{
if (!Self::GetPed())
return;
Self::GetPed().SetRagdoll(true);
}
};
static NoRagdoll _NoRagdoll{"noragdoll", "No Ragdoll", "Prevents your ped from ragdolling"};
}