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

This commit is contained in:
RD42 2024-10-15 17:18:06 +08:00
parent 0fba86e33f
commit b2d28335a3
2 changed files with 8 additions and 0 deletions

View File

@ -921,3 +921,10 @@ ENTITY_TYPE* CPlayerPed::GetGtaContactEntity()
//-----------------------------------------------------------
VEHICLE_TYPE* CPlayerPed::GetGtaContactVehicle()
{
return (VEHICLE_TYPE*)m_pPed->pContactVehicle;
}
//-----------------------------------------------------------

View File

@ -68,6 +68,7 @@ public:
BOOL IsAPassenger();
VEHICLE_TYPE * GetGtaVehicle();
VEHICLE_TYPE * GetGtaContactVehicle();
ENTITY_TYPE * GetGtaContactEntity();
float GetDistanceFromVehicle(CVehicle *pVehicle);