[saco] Implement/match CVehicle::IsDriverLocalPlayer()

This commit is contained in:
RD42 2024-08-20 23:05:14 +08:00
parent a66488518b
commit 7ebeab2055
2 changed files with 13 additions and 0 deletions

View File

@ -127,3 +127,15 @@ BOOL CVehicle::IsWrecked()
//-----------------------------------------------------------
BOOL CVehicle::IsDriverLocalPlayer()
{
if(m_pVehicle) {
if((PED_TYPE *)m_pVehicle->pDriver == GamePool_FindPlayerPed()) {
return TRUE;
}
}
return FALSE;
}
//-----------------------------------------------------------

View File

@ -27,6 +27,7 @@ public:
BOOL HasSunk();
BOOL IsWrecked();
BOOL IsDriverLocalPlayer();
BOOL HasADriver();
void SetEngineState(BOOL bState);