diff --git a/resource/common/locale/English.json b/resource/common/locale/English.json index 90c9e41..c0b8e6b 100644 --- a/resource/common/locale/English.json +++ b/resource/common/locale/English.json @@ -239,6 +239,7 @@ "LockControl": "Lock control", "LungCapacity": "Lung capacity", "MaxAppeal": "Max sex appeal", + "MaxArmour" : "Max armour", "MaxHealth": "Max health", "MeeleProof": "Meele proof", "MegaJump": "Mega jump", diff --git a/src/player.cpp b/src/player.cpp index ae4c7dd..91c0857 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -578,7 +578,7 @@ void Player::ShowPage() { ImGui::BeginChild("PlayerMenus"); - Ui::EditReference(TEXT("Player.Armour"), pPlayer->m_fArmour, 0, 100, 150); + Ui::EditReference(TEXT("Player.Armour"), pPlayer->m_fArmour, 0, 100, pInfo->m_nMaxArmour); #ifdef GTASA if (ImGui::CollapsingHeader(TEXT("Player.Body"))) { @@ -627,6 +627,8 @@ void Player::ShowPage() Ui::EditReference(TEXT("Player.Health"), pPlayer->m_fHealth, 0, 100, BY_GAME(static_cast(pPlayer->m_fMaxHealth), 100, 100)); #ifdef GTASA Ui::EditStat(TEXT("Player.LungCapacity"), STAT_LUNG_CAPACITY); + + Ui::EditReference(TEXT("Player.MaxArmour"), pInfo->m_nMaxArmour, 0, 100, 255); Ui::EditStat(TEXT("Player.MaxHealth"), STAT_MAX_HEALTH, 0, 569, 1450); Ui::EditAddress(TEXT("Player.Money"), 0xB7CE50, -99999999, 0, 99999999); #else