diff --git a/saco/net/remoteplayer.cpp b/saco/net/remoteplayer.cpp index 4e91c88..b33d1ff 100644 --- a/saco/net/remoteplayer.cpp +++ b/saco/net/remoteplayer.cpp @@ -100,3 +100,12 @@ void CRemotePlayer::EnterVehicle(VEHICLEID VehicleID, BOOL bPassenger) //---------------------------------------------------- +void CRemotePlayer::ExitVehicle() +{ + if(m_pPlayerPed && m_pPlayerPed->IsInVehicle()) { + m_pPlayerPed->SetKeys(0,0,0); + m_pPlayerPed->ExitCurrentVehicle(); + } +} + +//---------------------------------------------------- diff --git a/saco/net/remoteplayer.h b/saco/net/remoteplayer.h index 9e9f9f8..16be238 100644 --- a/saco/net/remoteplayer.h +++ b/saco/net/remoteplayer.h @@ -62,6 +62,7 @@ public: DWORD GetPlayerColorAsARGB(); void EnterVehicle(VEHICLEID VehicleID, BOOL bPassenger); + void ExitVehicle(); }; //----------------------------------------------------