feat(Self): Added Heal (#285)

This commit is contained in:
Kim123LP
2022-06-25 22:03:43 +02:00
committed by GitHub
parent 95b3a3f755
commit 5f440165d0

View File

@ -8,6 +8,13 @@ namespace big
components::button("Suicide", [] { components::button("Suicide", [] {
ENTITY::SET_ENTITY_HEALTH(self::ped, 0, 0); ENTITY::SET_ENTITY_HEALTH(self::ped, 0, 0);
}); });
ImGui::SameLine();
components::button("Heal", [] {
ENTITY::SET_ENTITY_HEALTH(self::ped, PED::GET_PED_MAX_HEALTH(self::ped), 0);
PED::SET_PED_ARMOUR(self::ped, PLAYER::GET_PLAYER_MAX_ARMOUR(self::id));
});
ImGui::SameLine(); ImGui::SameLine();
@ -93,4 +100,4 @@ namespace big
g_local_player->m_player_info->m_wanted_level = g->self.wanted_level; g_local_player->m_player_info->m_wanted_level = g->self.wanted_level;
} }
} }
} }