mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
fix(Aimbot/Triggerbot): crash could occur if the user had Trust Friends on when aimbotting (#3413)
This commit is contained in:
parent
7ce99f9ef6
commit
9413c30f44
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user