[saco] Implement and match CPlayerPed::SetHealth(...)

This commit is contained in:
RD42 2024-05-05 19:06:45 +08:00
parent e2ee3d3a3b
commit 1865de083f
2 changed files with 9 additions and 0 deletions

View File

@ -181,6 +181,14 @@ float CPlayerPed::GetHealth()
//-----------------------------------------------------------
void CPlayerPed::SetHealth(float fHealth)
{
if(!m_pPed) return;
m_pPed->fHealth = fHealth;
}
//-----------------------------------------------------------
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
{
if(!m_pPed) return;

View File

@ -29,6 +29,7 @@ public:
int GetCurrentVehicleID();
BOOL IsOnScreen();
float GetHealth();
void SetHealth(float fHealth);
WORD GetAmmo();