diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index 8524488..aa969b3 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -304,6 +304,13 @@ BOOL CPlayerPed::IsAPassenger() return FALSE; } +//----------------------------------------------------------- + +VEHICLE_TYPE * CPlayerPed::GetGtaVehicle() +{ + return (VEHICLE_TYPE *)m_pPed->pVehicle; +} + //----------------------------------------------------------- void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo) diff --git a/saco/game/playerped.h b/saco/game/playerped.h index 60c99c7..6c79532 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -55,6 +55,8 @@ public: BOOL IsAPassenger(); + VEHICLE_TYPE * GetGtaVehicle(); + void StartJetpack(); void StopJetpack(); BOOL IsInJetpackMode();