This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.

18 lines
444 B
C++

#include "backend/command.hpp"
#include "natives.hpp"
namespace big
{
class heal : command
{
using command::command;
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
{
ENTITY::SET_ENTITY_HEALTH(self::ped, PED::GET_PED_MAX_HEALTH(self::ped), 0, 0);
PED::SET_PED_ARMOUR(self::ped, PLAYER::GET_PLAYER_MAX_ARMOUR(self::id));
}
};
heal g_heal("heal", "HEAL", "HEAL_DESC", 0);
}