mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-30 11:42:44 +08:00
Player Database Enhancement (#2411)
Added 'Send Friend Request' through the player's rockstar ID.
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#include "services/player_database/player_database_service.hpp"
|
||||
#include "views/view.hpp"
|
||||
#include "services/gta_data/gta_data_service.hpp"
|
||||
#include "util/session.hpp"
|
||||
|
||||
#include <network/netConnection.hpp>
|
||||
#include <script/globals/GPBD_FM.hpp>
|
||||
@ -179,11 +180,7 @@ namespace big
|
||||
ImGui::SameLine();
|
||||
|
||||
if (ImGui::SmallButton("VIEW_PLAYER_INFO_SC_PROFILE"_T.data()))
|
||||
g_fiber_pool->queue_job([] {
|
||||
uint64_t gamerHandle[13];
|
||||
NETWORK::NETWORK_HANDLE_FROM_PLAYER(g_player_service->get_selected()->id(), (Any*)&gamerHandle, 13);
|
||||
NETWORK::NETWORK_SHOW_PROFILE_UI((Any*)&gamerHandle);
|
||||
});
|
||||
session::show_profile_by_rockstar_id(g_player_service->get_selected()->get_net_data()->m_gamer_handle.m_rockstar_id);
|
||||
|
||||
if (CPlayerInfo* player_info = g_player_service->get_selected()->get_player_info(); player_info != nullptr)
|
||||
{
|
||||
|
@ -7,6 +7,14 @@ namespace big
|
||||
{
|
||||
ImGui::Checkbox("SPECTATE"_T.data(), &g.player.spectating);
|
||||
|
||||
if (g.player.spectating)
|
||||
{
|
||||
components::command_checkbox<"overridecamdistance">();
|
||||
|
||||
if (g.player.override_cam_distance)
|
||||
components::command_int_slider<"overridecamdistanceint">();
|
||||
}
|
||||
|
||||
if (g_player_service->get_selected()->is_valid())
|
||||
{
|
||||
player_ptr current_player = g_player_service->get_selected();
|
||||
|
Reference in New Issue
Block a user