actor_info *actor = SF->getSAMP()->getPlayers()->pLocalPlayer->pSAMP_Actor->pGTA_Ped;
if (!actor)
return;
float value = *(float*)0x00B7CDB4 / 31.4f;
if (IsDriving(SF->getSAMP()->getInfo()->pPools->pPlayer->sLocalPlayerID)) {
value = SF->getSAMP()->getPlayers()->pLocalPlayer->pSAMP_Actor->pGTA_Ped->vehicle->hitpoints;
value = value / 10;
}
if (value >= 100.0f) {
value = 100.0f;
}
SF->getRender()->DrawBox(x + 0, y + 1, (int)value * +1.21, 14, D3DCOLOR_ARGB(230, 110, 0, 185));
SF->getRender()->DrawBorderedBox(x, y, 123, 16, D3DCOLOR_ARGB(80, 0, 0, 0), 2, D3DCOLOR_ARGB(255, 0, 0, 0));
float valuef = *(float*)0x00B7CDB4 / 31.4f;
sprintf(msg, "%.0f", valuef);
pFont->Print(msg, D3DCOLOR_ARGB(255, 254, 255, 20), (float)x + 49.0f, (float)y - 4.5f, false);
}