diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index 4fcf734..dc0d0a3 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -921,3 +921,10 @@ ENTITY_TYPE* CPlayerPed::GetGtaContactEntity() //----------------------------------------------------------- +VEHICLE_TYPE* CPlayerPed::GetGtaContactVehicle() +{ + return (VEHICLE_TYPE*)m_pPed->pContactVehicle; +} + +//----------------------------------------------------------- + diff --git a/saco/game/playerped.h b/saco/game/playerped.h index e3ea70a..501bc40 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -68,6 +68,7 @@ public: BOOL IsAPassenger(); VEHICLE_TYPE * GetGtaVehicle(); + VEHICLE_TYPE * GetGtaContactVehicle(); ENTITY_TYPE * GetGtaContactEntity(); float GetDistanceFromVehicle(CVehicle *pVehicle);