From 9c4e22814dc9af969a81abde98c27b577f59b251 Mon Sep 17 00:00:00 2001 From: Yimura Date: Wed, 5 Jan 2022 18:51:30 +0100 Subject: [PATCH] feat(PlayerInfo): Simplified Code and added separators --- BigBaseV2/src/gui/window/player/player_info.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/BigBaseV2/src/gui/window/player/player_info.cpp b/BigBaseV2/src/gui/window/player/player_info.cpp index 451d4700..eca13a26 100644 --- a/BigBaseV2/src/gui/window/player/player_info.cpp +++ b/BigBaseV2/src/gui/window/player/player_info.cpp @@ -21,15 +21,14 @@ namespace big ImGui::Text("Session Host: %s", net_player->is_host() ? "Yes" : "No"); - //Check if the player ped is in a vehicle - if (player_info->m_ped->m_vehicle != nullptr) - { - ImGui::Text("Car GodMode: %s", player_info->m_ped->m_vehicle->m_godmode ? "Yes" : "No"); - } - else - { - ImGui::Text("Car GodMode: %s", "No Car Detected"); - } + ImGui::Separator(); + + ImGui::Text("Vehicle God Mode: %s", + player_info->m_ped->m_vehicle == nullptr ? "No Car Detected" : + player_info->m_ped->m_vehicle->m_godmode ? "Yes" : "No" + ); + + ImGui::Separator(); ImGui::Text("Rockstar ID: %d", netData.m_rockstar_id); ImGui::Text("IP Address: %d.%d.%d.%d:%d", netData.m_external_ip.m_field1, netData.m_external_ip.m_field2, netData.m_external_ip.m_field3, netData.m_external_ip.m_field4, netData.m_external_port);