fix(Aimbot/Triggerbot): crash could occur if the user had Trust Friends on when aimbotting (#3413)

This commit is contained in:
gir489 2024-07-23 15:23:39 -04:00 committed by GitHub
parent 40bf403500
commit d946f063d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);