feat(PlayerInfo): Simplified Code and added separators
This commit is contained in:
parent
c82d25b24a
commit
bee338e717
@ -21,15 +21,14 @@ namespace big
|
|||||||
|
|
||||||
ImGui::Text("Session Host: %s", net_player->is_host() ? "Yes" : "No");
|
ImGui::Text("Session Host: %s", net_player->is_host() ? "Yes" : "No");
|
||||||
|
|
||||||
//Check if the player ped is in a vehicle
|
ImGui::Separator();
|
||||||
if (player_info->m_ped->m_vehicle != nullptr)
|
|
||||||
{
|
ImGui::Text("Vehicle God Mode: %s",
|
||||||
ImGui::Text("Car GodMode: %s", player_info->m_ped->m_vehicle->m_godmode ? "Yes" : "No");
|
player_info->m_ped->m_vehicle == nullptr ? "No Car Detected" :
|
||||||
}
|
player_info->m_ped->m_vehicle->m_godmode ? "Yes" : "No"
|
||||||
else
|
);
|
||||||
{
|
|
||||||
ImGui::Text("Car GodMode: %s", "No Car Detected");
|
ImGui::Separator();
|
||||||
}
|
|
||||||
|
|
||||||
ImGui::Text("Rockstar ID: %d", netData.m_rockstar_id);
|
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);
|
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);
|
||||||
|
Reference in New Issue
Block a user