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

This commit is contained in:
RD42 2024-05-05 22:13:40 +08:00
parent 24b2cc72c1
commit c5eb9a8421
2 changed files with 9 additions and 0 deletions

View File

@ -211,6 +211,14 @@ DWORD CPlayerPed::GetStateFlags()
return m_pPed->dwStateFlags;
}
//-----------------------------------------------------------
void CPlayerPed::SetStateFlags(DWORD dwState)
{
if(!m_pPed) return;
m_pPed->dwStateFlags = dwState;
}
//-----------------------------------------------------------
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)

View File

@ -33,6 +33,7 @@ public:
float GetArmour();
void SetArmour(float fArmour);
DWORD GetStateFlags();
void SetStateFlags(DWORD dwStateFlags);
WORD GetAmmo();