[saco] Implement/match CRemotePlayer::ExitVehicle()

This commit is contained in:
RD42 2024-10-31 17:43:13 +08:00
parent 9b91485a8a
commit b65e643be4
2 changed files with 10 additions and 0 deletions

View File

@ -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();
}
}
//----------------------------------------------------

View File

@ -62,6 +62,7 @@ public:
DWORD GetPlayerColorAsARGB();
void EnterVehicle(VEHICLEID VehicleID, BOOL bPassenger);
void ExitVehicle();
};
//----------------------------------------------------