From 9413c30f4426db5e6919559cbcb3b453b6a33990 Mon Sep 17 00:00:00 2001 From: gir489 <100792176+gir489returns@users.noreply.github.com> Date: Tue, 23 Jul 2024 15:23:39 -0400 Subject: [PATCH] fix(Aimbot/Triggerbot): crash could occur if the user had Trust Friends on when aimbotting (#3413) --- src/backend/looped/weapons/aimbot.cpp | 2 +- src/backend/looped/weapons/triggerbot.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/looped/weapons/aimbot.cpp b/src/backend/looped/weapons/aimbot.cpp index 02774e55..07106956 100644 --- a/src/backend/looped/weapons/aimbot.cpp +++ b/src/backend/looped/weapons/aimbot.cpp @@ -139,7 +139,7 @@ namespace big continue; } - if (g.weapons.aimbot.exclude_friends && !ped->m_player_info) + if (g.weapons.aimbot.exclude_friends && ped->m_player_info) { auto rockstar_id = ped->m_player_info->m_net_player_data.m_gamer_handle.m_rockstar_id; auto is_friend = friends_service::is_friend(rockstar_id); diff --git a/src/backend/looped/weapons/triggerbot.cpp b/src/backend/looped/weapons/triggerbot.cpp index b8784116..c25985a1 100644 --- a/src/backend/looped/weapons/triggerbot.cpp +++ b/src/backend/looped/weapons/triggerbot.cpp @@ -33,7 +33,7 @@ namespace big if (g.weapons.aimbot.only_on_player && !ped_ptr->m_player_info) return; - if (g.weapons.aimbot.exclude_friends && !ped_ptr->m_player_info) + if (g.weapons.aimbot.exclude_friends && ped_ptr->m_player_info) { auto rockstar_id = ped_ptr->m_player_info->m_net_player_data.m_gamer_handle.m_rockstar_id; auto is_friend = friends_service::is_friend(rockstar_id);