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

This commit is contained in:
RD42 2024-05-05 18:57:12 +08:00
parent cf591f0fb8
commit 492705d035
2 changed files with 11 additions and 2 deletions

View File

@ -25,7 +25,7 @@ CPlayerPed::CPlayerPed()
field_2A8 = 1; field_2A8 = 1;
field_2AC = 1; field_2AC = 1;
field_2CD = 0; m_dwArrow = 0;
field_2B9 = 0; field_2B9 = 0;
field_2F2 = 0; field_2F2 = 0;
field_2D2 = 0; field_2D2 = 0;
@ -147,6 +147,14 @@ int CPlayerPed::GetCurrentVehicleID()
//----------------------------------------------------------- //-----------------------------------------------------------
void CPlayerPed::HideMarker()
{
if (m_dwArrow) ScriptCommand(&disable_marker, m_dwArrow);
m_dwArrow = NULL; // Just make sure
}
//-----------------------------------------------------------
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo) void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
{ {
if(!m_pPed) return; if(!m_pPed) return;

View File

@ -24,6 +24,7 @@ public:
CAMERA_AIM * GetCurrentAim(); CAMERA_AIM * GetCurrentAim();
void SetCurrentAim(CAMERA_AIM *pAim); void SetCurrentAim(CAMERA_AIM *pAim);
void HideMarker();
BYTE GetCurrentWeapon(); BYTE GetCurrentWeapon();
int GetCurrentVehicleID(); int GetCurrentVehicleID();
@ -59,7 +60,7 @@ public:
int field_2C1; int field_2C1;
int field_2C5; int field_2C5;
int field_2C9; int field_2C9;
int field_2CD; DWORD m_dwArrow;
char _gap2D1; char _gap2D1;