mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-12 02:08:14 +08:00
[saco] Implement/match CActorPed::IsInVehicle()
This commit is contained in:
1 parent
f6d232a45c
commit
007f7729f9
2 files changed
+13
No files matched your search
@@ -202,3 +202,15 @@ void CActorPed::SetActionTrigger(BYTE byteTrigger)
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
BOOL CActorPed::IsInVehicle()
|
||||
{
|
||||
if(!m_pPed) return FALSE;
|
||||
|
||||
if(IN_VEHICLE(m_pPed)) {
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user