[saco] Implement/match CPlayerPed::GetGtaVehicle()

This commit is contained in:
RD42 2024-08-11 23:44:07 +08:00
parent ee4a0b40a7
commit d4ea1ee91e
2 changed files with 9 additions and 0 deletions

View File

@ -304,6 +304,13 @@ BOOL CPlayerPed::IsAPassenger()
return FALSE; return FALSE;
} }
//-----------------------------------------------------------
VEHICLE_TYPE * CPlayerPed::GetGtaVehicle()
{
return (VEHICLE_TYPE *)m_pPed->pVehicle;
}
//----------------------------------------------------------- //-----------------------------------------------------------
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo) void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)

View File

@ -55,6 +55,8 @@ public:
BOOL IsAPassenger(); BOOL IsAPassenger();
VEHICLE_TYPE * GetGtaVehicle();
void StartJetpack(); void StartJetpack();
void StopJetpack(); void StopJetpack();
BOOL IsInJetpackMode(); BOOL IsInJetpackMode();