[saco] Implement and match CPlayerPed::IsOnScreen()

This commit is contained in:
RD42 2024-05-05 18:59:28 +08:00
parent 492705d035
commit a14828960b
2 changed files with 9 additions and 0 deletions

View File

@ -155,6 +155,14 @@ void CPlayerPed::HideMarker()
//-----------------------------------------------------------
BOOL CPlayerPed::IsOnScreen()
{
if(m_pPed) return GameIsEntityOnScreen((DWORD *)m_pPed);
return FALSE;
}
//-----------------------------------------------------------
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
{
if(!m_pPed) return;

View File

@ -27,6 +27,7 @@ public:
void HideMarker();
BYTE GetCurrentWeapon();
int GetCurrentVehicleID();
BOOL IsOnScreen();
WORD GetAmmo();