diff --git a/src/game/backend/AnticheatBypass.cpp b/src/game/backend/AnticheatBypass.cpp index df78e2a60..ff6d33309 100644 --- a/src/game/backend/AnticheatBypass.cpp +++ b/src/game/backend/AnticheatBypass.cpp @@ -333,7 +333,8 @@ namespace YimMenu if (!m_FSLProvidesBEBypass && !m_BattlEyeRunning) { - Pointers.BattlEyeStatusUpdatePatch->Apply(); + // this is integrity checked now + //Pointers.BattlEyeStatusUpdatePatch->Apply(); #if RESTORE_DESTROYED_FUNCTIONS uintptr_t base = ModuleMgr.Get("GTA5_Enhanced.exe"_J)->Base(); diff --git a/src/game/backend/Tunables.cpp b/src/game/backend/Tunables.cpp index f52e7571c..f9fd8de48 100644 --- a/src/game/backend/Tunables.cpp +++ b/src/game/backend/Tunables.cpp @@ -199,12 +199,12 @@ namespace YimMenu bool Tunable::IsReady() { if (m_Global) - return true; + return m_Global->CanAccess(); m_Global = Tunables::GetTunable(m_Hash); if (m_Global) - return true; + return m_Global->CanAccess(); return false; } diff --git a/src/game/gta/ScriptGlobal.cpp b/src/game/gta/ScriptGlobal.cpp index a1b3a4805..778ba5196 100644 --- a/src/game/gta/ScriptGlobal.cpp +++ b/src/game/gta/ScriptGlobal.cpp @@ -10,6 +10,6 @@ namespace YimMenu bool ScriptGlobal::CanAccess() const { - return Pointers.ScriptGlobals && (m_Index >> 0x12 & 0x3F) < 0x40 && Pointers.ScriptGlobals[m_Index >> 0x12 & 0x3F]; + return Pointers.ScriptGlobals && Pointers.ScriptGlobals[m_Index >> 0x12 & 0x3F]; } } \ No newline at end of file diff --git a/src/types/anticheat/CAnticheatContext.hpp b/src/types/anticheat/CAnticheatContext.hpp index 36a45c159..7c3ccbbc6 100644 --- a/src/types/anticheat/CAnticheatContext.hpp +++ b/src/types/anticheat/CAnticheatContext.hpp @@ -22,5 +22,9 @@ struct CAnticheatContext bool m_IsDebugMode; volatile __int32 m_CurrentScanIndex; std::uint64_t qwordA98; + std::uint64_t m_Timer; + char byteAA8[24]; + char byteAC0[24]; + char gapAD8[8]; }; -static_assert(sizeof(CAnticheatContext) == 0xAA0); \ No newline at end of file +static_assert(sizeof(CAnticheatContext) == 0xAE0); \ No newline at end of file