Merge pull request #38 from The-Denno/gui_player_info

feat(PlayerInfo): Added vehicle god mode detection
This commit is contained in:
Yimura 2022-01-05 18:54:57 +01:00 committed by GitHub
commit e1872bcc00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,15 @@ namespace big
netPlayerData& netData = player_info->m_net_player_data;
ImGui::Text("Session Host: %s", net_player->is_host() ? "Yes" : "No");
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);