feat(Self): Added Heal (#285)

This commit is contained in:
Kim123LP 2022-06-25 22:03:43 +02:00 committed by GitHub
parent 6ef2a63f8c
commit 483ecd1384

View File

@ -8,6 +8,13 @@ namespace big
components::button("Suicide", [] {
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();
@ -93,4 +100,4 @@ namespace big
g_local_player->m_player_info->m_wanted_level = g->self.wanted_level;
}
}
}
}