diff --git a/saco/game/vehicle.cpp b/saco/game/vehicle.cpp index 2b564da..646b96d 100644 --- a/saco/game/vehicle.cpp +++ b/saco/game/vehicle.cpp @@ -35,3 +35,17 @@ void CVehicle::ResetPointers() //----------------------------------------------------------- +BOOL CVehicle::HasADriver() +{ + if(!m_pVehicle) return FALSE; + if(!GamePool_Vehicle_GetAt(m_dwGTAId)) return FALSE; + + if(m_pVehicle) { + if(m_pVehicle->pDriver && IN_VEHICLE(m_pVehicle->pDriver) && m_pVehicle->pDriver->dwPedType == 0) + return TRUE; + } + return FALSE; +} + +//----------------------------------------------------------- + diff --git a/saco/game/vehicle.h b/saco/game/vehicle.h index fbe53b5..8eb44a4 100644 --- a/saco/game/vehicle.h +++ b/saco/game/vehicle.h @@ -20,6 +20,8 @@ public: void ResetPointers(); + BOOL HasADriver(); + void LinkToInterior(int iInterior);