From 25f2999e3f8781a5ee3719c5c1723571e820203c Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 2 Nov 2024 23:03:33 +0800 Subject: [PATCH] [saco] Implement/match `CPlayerPed::IsCellphoneEnabled()` --- saco/game/playerped.cpp | 7 +++++++ saco/game/playerped.h | 1 + 2 files changed, 8 insertions(+) diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index 7f0438f..00f8b81 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -1310,6 +1310,13 @@ void CPlayerPed::ToggleCellphone(int iOn) //----------------------------------------------------------- +int CPlayerPed::IsCellphoneEnabled() +{ + return m_iCellPhoneEnabled; +} + +//----------------------------------------------------------- + void CPlayerPed::ProcessVehicleHorn() { if(!m_pPed) return; diff --git a/saco/game/playerped.h b/saco/game/playerped.h index 33c384e..8bd4664 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -115,6 +115,7 @@ public: void DestroyFollowPedTask(); void ToggleCellphone(int iOn); + int IsCellphoneEnabled(); BOOL IsJumping(); BOOL IsFighting();