Feat ptr cache continued (#1227)
This commit is contained in:

committed by
GitHub

parent
be5bb50c87
commit
74c3931209
@ -16,7 +16,7 @@ namespace big
|
||||
ImGui::SetNextWindowPos({(300.f + 20.f) * g.window.gui_scale, 100.f * g.window.gui_scale}, ImGuiCond_Always);
|
||||
ImGui::SetNextWindowSize({0.f, 0.f});
|
||||
ImGui::SetNextWindowSizeConstraints({300.f, 100.f},
|
||||
{(float)*g_pointers->m_resolution_x - 270.f, (float)*g_pointers->m_resolution_y - 110.f});
|
||||
{(float)*g_pointers->m_gta.m_resolution_x - 270.f, (float)*g_pointers->m_gta.m_resolution_y - 110.f});
|
||||
if (ImGui::Begin("main", nullptr, window_flags))
|
||||
{
|
||||
const char* key = nullptr;
|
||||
|
@ -11,8 +11,8 @@ namespace big
|
||||
if (!g.cmd_executor.enabled)
|
||||
return;
|
||||
|
||||
float screen_x = (float)*g_pointers->m_resolution_x;
|
||||
float screen_y = (float)*g_pointers->m_resolution_y;
|
||||
float screen_x = (float)*g_pointers->m_gta.m_resolution_x;
|
||||
float screen_y = (float)*g_pointers->m_gta.m_resolution_y;
|
||||
|
||||
ImGui::SetNextWindowPos(ImVec2(screen_x * 0.25f, screen_y * 0.2f), ImGuiCond_Always);
|
||||
ImGui::SetNextWindowBgAlpha(0.65f);
|
||||
|
@ -40,20 +40,20 @@ namespace big
|
||||
}
|
||||
}
|
||||
|
||||
dl->AddRectFilled({(float)*g_pointers->m_resolution_x - 360.f, 10.f + start_pos},
|
||||
{(float)*g_pointers->m_resolution_x - 10.f, start_pos + 45.f + total_size},
|
||||
dl->AddRectFilled({(float)*g_pointers->m_gta.m_resolution_x - 360.f, 10.f + start_pos},
|
||||
{(float)*g_pointers->m_gta.m_resolution_x - 10.f, start_pos + 45.f + total_size},
|
||||
g.window.color);
|
||||
dl->AddRectFilledMultiColor({(float)*g_pointers->m_resolution_x - 360.f, 10.f + start_pos}, {(float)*g_pointers->m_resolution_x - 255.f, start_pos + 45.f + total_size}, fadeBegin, fadeEnd, fadeEnd, fadeBegin);
|
||||
dl->AddRectFilledMultiColor({(float)*g_pointers->m_gta.m_resolution_x - 360.f, 10.f + start_pos}, {(float)*g_pointers->m_gta.m_resolution_x - 255.f, start_pos + 45.f + total_size}, fadeBegin, fadeEnd, fadeEnd, fadeBegin);
|
||||
|
||||
dl->AddText(g.window.font_sub_title,
|
||||
22.f,
|
||||
{(float)*g_pointers->m_resolution_x - 350.f, 15.f + start_pos},
|
||||
{(float)*g_pointers->m_gta.m_resolution_x - 350.f, 15.f + start_pos},
|
||||
textCol,
|
||||
title.c_str());
|
||||
int i = 0;
|
||||
for (std::string txt : split_points)
|
||||
{
|
||||
dl->AddText({(float)*g_pointers->m_resolution_x - 350.f, 40.f + (i * 20.f) + start_pos}, textCol, txt.c_str());
|
||||
dl->AddText({(float)*g_pointers->m_gta.m_resolution_x - 350.f, 40.f + (i * 20.f) + start_pos}, textCol, txt.c_str());
|
||||
i++;
|
||||
}
|
||||
|
||||
|
@ -26,10 +26,7 @@ namespace big
|
||||
ImGui::Text(std::format("Players: {}/{}", network_player_mgr->m_player_count, network_player_mgr->m_player_limit)
|
||||
.c_str());
|
||||
|
||||
//if (g.window.ingame_overlay.show_time)
|
||||
// ImGui::Text(std::format("Time: {:%d-%m-%Y %H:%M:%OS}", std::chrono::current_zone()->to_local(std::chrono::system_clock::now())).c_str());
|
||||
|
||||
if (auto replay_interface = *g_pointers->m_replay_interface; g.window.ingame_overlay.show_replay_interface)
|
||||
if (auto replay_interface = *g_pointers->m_gta.m_replay_interface; g.window.ingame_overlay.show_replay_interface)
|
||||
{
|
||||
ImGui::Separator();
|
||||
|
||||
|
@ -93,7 +93,7 @@ namespace big
|
||||
ImGui::InputScalar("Local CAutomobile", ImGuiDataType_U64, &local_vehicle, NULL, NULL, "%p", ImGuiInputTextFlags_CharsHexadecimal);
|
||||
}
|
||||
|
||||
if (auto mgr = *g_pointers->m_network_player_mgr)
|
||||
if (auto mgr = *g_pointers->m_gta.m_network_player_mgr)
|
||||
{
|
||||
uint64_t local_netplayer = (uint64_t)mgr->m_local_net_player;
|
||||
ImGui::InputScalar("Local CNetGamePlayer", ImGuiDataType_U64, &local_netplayer, NULL, NULL, "%p", ImGuiInputTextFlags_CharsHexadecimal);
|
||||
@ -105,13 +105,13 @@ namespace big
|
||||
}
|
||||
}
|
||||
|
||||
if (auto network = *g_pointers->m_network)
|
||||
if (auto network = *g_pointers->m_gta.m_network)
|
||||
{
|
||||
uint64_t nw = (uint64_t)network;
|
||||
ImGui::InputScalar("Network", ImGuiDataType_U64, &nw, NULL, NULL, "%p", ImGuiInputTextFlags_CharsHexadecimal);
|
||||
}
|
||||
|
||||
if (auto omgr = *g_pointers->m_network_object_mgr)
|
||||
if (auto omgr = *g_pointers->m_gta.m_network_object_mgr)
|
||||
{
|
||||
uint64_t nw = (uint64_t)omgr;
|
||||
ImGui::InputScalar("Network Object Mgr", ImGuiDataType_U64, &nw, NULL, NULL, "%p", ImGuiInputTextFlags_CharsHexadecimal);
|
||||
|
@ -56,7 +56,7 @@ namespace big
|
||||
|
||||
components::button("DEBUG_SCRIPT_EVENT_SEND_EVENT"_T, [] {
|
||||
args[1] = self::id;// prevent detection from AC
|
||||
g_pointers->m_trigger_script_event(1, args, event_arg_count, event_everyone ? -1 : 1 << event_player_bits);
|
||||
g_pointers->m_gta.m_trigger_script_event(1, args, event_arg_count, event_everyone ? -1 : 1 << event_player_bits);
|
||||
});
|
||||
|
||||
ImGui::EndTabItem();
|
||||
|
@ -36,7 +36,7 @@ namespace big
|
||||
{
|
||||
if (ImGui::BeginTabItem("Threads"))
|
||||
{
|
||||
if (!g_pointers->m_script_threads)
|
||||
if (!g_pointers->m_gta.m_script_threads)
|
||||
{
|
||||
selected_thread = nullptr;
|
||||
ImGui::EndTabItem();
|
||||
@ -47,7 +47,7 @@ namespace big
|
||||
|
||||
if (ImGui::BeginCombo("Thread", selected_thread ? selected_thread->m_name : "NONE"))
|
||||
{
|
||||
for (auto script : *g_pointers->m_script_threads)
|
||||
for (auto script : *g_pointers->m_gta.m_script_threads)
|
||||
{
|
||||
if (script)
|
||||
{
|
||||
@ -161,7 +161,7 @@ namespace big
|
||||
update_free_stacks_count();
|
||||
});
|
||||
|
||||
if (*g_pointers->m_game_state != eGameState::Invalid && std::chrono::high_resolution_clock::now() - last_stack_update_time > 100ms)
|
||||
if (*g_pointers->m_gta.m_game_state != eGameState::Invalid && std::chrono::high_resolution_clock::now() - last_stack_update_time > 100ms)
|
||||
{
|
||||
last_stack_update_time = std::chrono::high_resolution_clock::now();
|
||||
g_fiber_pool->queue_job([] {
|
||||
|
@ -37,10 +37,10 @@ namespace big
|
||||
|
||||
uint32_t ped_damage_bits = plyr->get_ped()->m_damage_bits;
|
||||
|
||||
if (g_pointers->m_get_screen_coords_for_world_coords(player_pos.data, &screen_x, &screen_y))
|
||||
if (g_pointers->m_gta.m_get_screen_coords_for_world_coords(player_pos.data, &screen_x, &screen_y))
|
||||
{
|
||||
const auto esp_x = (float)*g_pointers->m_resolution_x * screen_x;
|
||||
const auto esp_y = (float)*g_pointers->m_resolution_y * screen_y;
|
||||
const auto esp_x = (float)*g_pointers->m_gta.m_resolution_x * screen_x;
|
||||
const auto esp_y = (float)*g_pointers->m_gta.m_resolution_y * screen_y;
|
||||
|
||||
std::string name_str;
|
||||
ImVec2 name_pos = {esp_x - (62.5f * multplr), esp_y - (175.f * multplr) - 20.f};
|
||||
@ -62,8 +62,8 @@ namespace big
|
||||
const auto health_perc = plyr->get_ped()->m_health / (plyr->get_ped()->m_maxhealth + 0.001f);
|
||||
|
||||
if (distance < g.esp.tracer_render_distance[1] && distance > g.esp.tracer_render_distance[0] && g.esp.tracer)
|
||||
draw_list->AddLine({(float)*g_pointers->m_resolution_x * g.esp.tracer_draw_position[0],
|
||||
(float)*g_pointers->m_resolution_y * g.esp.tracer_draw_position[1]},
|
||||
draw_list->AddLine({(float)*g_pointers->m_gta.m_resolution_x * g.esp.tracer_draw_position[0],
|
||||
(float)*g_pointers->m_gta.m_resolution_y * g.esp.tracer_draw_position[1]},
|
||||
{esp_x, esp_y},
|
||||
esp_color);
|
||||
|
||||
|
@ -21,7 +21,7 @@ namespace big
|
||||
ImGui::SetNextItemWidth(300.f);
|
||||
components::input_text_with_hint("PLAYER"_T, "SEARCH"_T, search, sizeof(search), ImGuiInputTextFlags_None);
|
||||
|
||||
if (ImGui::ListBoxHeader("###players", {180, static_cast<float>(*g_pointers->m_resolution_y - 400 - 38 * 4)}))
|
||||
if (ImGui::ListBoxHeader("###players", {180, static_cast<float>(*g_pointers->m_gta.m_resolution_y - 400 - 38 * 4)}))
|
||||
{
|
||||
auto& item_arr = g_player_database_service->get_players();
|
||||
if (item_arr.size() > 0)
|
||||
@ -78,7 +78,7 @@ namespace big
|
||||
if (auto selected = g_player_database_service->get_selected())
|
||||
{
|
||||
ImGui::SameLine();
|
||||
if (ImGui::BeginChild("###selected_player", {500, static_cast<float>(*g_pointers->m_resolution_y - 388 - 38 * 4)}, false, ImGuiWindowFlags_NoBackground))
|
||||
if (ImGui::BeginChild("###selected_player", {500, static_cast<float>(*g_pointers->m_gta.m_resolution_y - 388 - 38 * 4)}, false, ImGuiWindowFlags_NoBackground))
|
||||
{
|
||||
if (ImGui::InputText("NAME"_T.data(), name_buf, sizeof(name_buf)))
|
||||
{
|
||||
|
@ -35,13 +35,13 @@ namespace big
|
||||
components::input_text("SESSION_INFO"_T, base64, sizeof(base64));
|
||||
components::button("JOIN_SESSION_INFO"_T, [] {
|
||||
rage::rlSessionInfo info;
|
||||
g_pointers->m_decode_session_info(&info, base64, nullptr);
|
||||
g_pointers->m_gta.m_decode_session_info(&info, base64, nullptr);
|
||||
session::join_session(info);
|
||||
});
|
||||
ImGui::SameLine();
|
||||
components::button("COPY_SESSION_INFO"_T, [] {
|
||||
char buf[0x100]{};
|
||||
g_pointers->m_encode_session_info(>a_util::get_network()->m_game_session.m_rline_session.m_session_info, buf, 0xA9, nullptr);
|
||||
g_pointers->m_gta.m_encode_session_info(>a_util::get_network()->m_game_session.m_rline_session.m_session_info, buf, 0xA9, nullptr);
|
||||
ImGui::SetClipboardText(buf);
|
||||
});
|
||||
|
||||
@ -62,8 +62,8 @@ namespace big
|
||||
{
|
||||
for (const auto& region_type : regions)
|
||||
{
|
||||
components::selectable(region_type.name, *g_pointers->m_region_code == region_type.id, [®ion_type] {
|
||||
*g_pointers->m_region_code = region_type.id;
|
||||
components::selectable(region_type.name, *g_pointers->m_gta.m_region_code == region_type.id, [®ion_type] {
|
||||
*g_pointers->m_gta.m_region_code = region_type.id;
|
||||
});
|
||||
}
|
||||
ImGui::EndListBox();
|
||||
@ -94,7 +94,7 @@ namespace big
|
||||
components::button("SEND"_T, [] {
|
||||
if (const auto net_game_player = gta_util::get_network_player_mgr()->m_local_net_player; net_game_player)
|
||||
{
|
||||
if (g_hooking->get_original<hooks::send_chat_message>()(*g_pointers->m_send_chat_ptr,
|
||||
if (g_hooking->get_original<hooks::send_chat_message>()(*g_pointers->m_gta.m_send_chat_ptr,
|
||||
net_game_player->get_net_data(),
|
||||
msg,
|
||||
g.session.is_team))
|
||||
|
@ -23,7 +23,7 @@ namespace big
|
||||
|
||||
ImGui::SetNextItemWidth(300.f);
|
||||
|
||||
if (ImGui::ListBoxHeader("###sessions", {300, static_cast<float>(*g_pointers->m_resolution_y - 400 - 38 * 4)}))
|
||||
if (ImGui::ListBoxHeader("###sessions", {300, static_cast<float>(*g_pointers->m_gta.m_resolution_y - 400 - 38 * 4)}))
|
||||
{
|
||||
if (g_matchmaking_service->get_num_found_sessions())
|
||||
{
|
||||
@ -37,7 +37,7 @@ namespace big
|
||||
if (components::selectable(std::to_string(session.info.m_session_token), i == selected_session_idx))
|
||||
{
|
||||
selected_session_idx = i;
|
||||
g_pointers->m_encode_session_info(&session.info, session_info, 0x7D, nullptr);
|
||||
g_pointers->m_gta.m_encode_session_info(&session.info, session_info, 0x7D, nullptr);
|
||||
}
|
||||
|
||||
if (ImGui::IsItemHovered())
|
||||
@ -62,7 +62,7 @@ namespace big
|
||||
if (selected_session_idx != -1)
|
||||
{
|
||||
ImGui::SameLine();
|
||||
if (ImGui::BeginChild("###selected_session", {300, static_cast<float>(*g_pointers->m_resolution_y - 388 - 38 * 4)}, false, ImGuiWindowFlags_NoBackground))
|
||||
if (ImGui::BeginChild("###selected_session", {300, static_cast<float>(*g_pointers->m_gta.m_resolution_y - 388 - 38 * 4)}, false, ImGuiWindowFlags_NoBackground))
|
||||
{
|
||||
auto& session = g_matchmaking_service->get_found_sessions()[selected_session_idx];
|
||||
|
||||
|
@ -36,7 +36,7 @@ namespace big
|
||||
ImGui::SameLine();
|
||||
if (ImGui::InputInt("###rank", &g.spoofing.rank))
|
||||
{
|
||||
*g_pointers->m_force_player_card_refresh = true;
|
||||
*g_pointers->m_gta.m_force_player_card_refresh = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ namespace big
|
||||
ImGui::SameLine();
|
||||
if (ImGui::InputFloat("###kd_ratio", &g.spoofing.kd_ratio))
|
||||
{
|
||||
*g_pointers->m_force_player_card_refresh = true;
|
||||
*g_pointers->m_gta.m_force_player_card_refresh = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ namespace big
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Combo("###badsport_select", &g.spoofing.badsport_type, "Clean Player\0Dirty Player\0Bad Sport"))
|
||||
{
|
||||
*g_pointers->m_force_player_card_refresh = true;
|
||||
*g_pointers->m_gta.m_force_player_card_refresh = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ namespace big
|
||||
{
|
||||
const auto player_count = g_player_service->players().size() + 1;
|
||||
|
||||
if (!*g_pointers->m_is_session_started && player_count < 2)
|
||||
if (!*g_pointers->m_gta.m_is_session_started && player_count < 2)
|
||||
return;
|
||||
float window_pos = 110.f + g_gui_service->nav_ctr * ImGui::CalcTextSize("W").y
|
||||
+ g_gui_service->nav_ctr * ImGui::GetStyle().ItemSpacing.y
|
||||
@ -84,7 +84,7 @@ namespace big
|
||||
if (ImGui::Begin("playerlist", nullptr, window_flags))
|
||||
{
|
||||
float window_height = (ImGui::CalcTextSize("A").y + ImGui::GetStyle().ItemInnerSpacing.y * 2 + 6.0f) * player_count + 10.0f;
|
||||
window_height = window_height + window_pos > (float)*g_pointers->m_resolution_y - 10.f ? (float)*g_pointers->m_resolution_y - (window_pos + 40.f) : window_height;
|
||||
window_height = window_height + window_pos > (float)*g_pointers->m_gta.m_resolution_y - 10.f ? (float)*g_pointers->m_gta.m_resolution_y - (window_pos + 40.f) : window_height;
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_FrameBg, {0.f, 0.f, 0.f, 0.f});
|
||||
ImGui::PushStyleColor(ImGuiCol_ScrollbarBg, {0.f, 0.f, 0.f, 0.f});
|
||||
|
@ -7,7 +7,7 @@ namespace big
|
||||
{
|
||||
void view::mobile()
|
||||
{
|
||||
ImGui::SetWindowSize({0.f, (float)*g_pointers->m_resolution_y}, ImGuiCond_Always);
|
||||
ImGui::SetWindowSize({0.f, (float)*g_pointers->m_gta.m_resolution_y}, ImGuiCond_Always);
|
||||
|
||||
components::sub_title("MERRYWEATHER"_T);
|
||||
ImGui::Separator();
|
||||
|
@ -7,7 +7,7 @@ namespace big
|
||||
{
|
||||
void view::outfit_slots()
|
||||
{
|
||||
if (*g_pointers->m_script_globals)
|
||||
if (*g_pointers->m_gta.m_script_globals)
|
||||
{
|
||||
static int slot = 0;
|
||||
ImGui::SetNextItemWidth(160);
|
||||
|
@ -20,7 +20,7 @@ namespace big
|
||||
{
|
||||
g_gta_data_service->set_state(eGtaDataUpdateState::NEEDS_UPDATE);
|
||||
|
||||
if (!*g_pointers->m_is_session_started)
|
||||
if (!*g_pointers->m_gta.m_is_session_started)
|
||||
{
|
||||
g_gta_data_service->update_in_online();
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ namespace big
|
||||
{
|
||||
void view::pv()
|
||||
{
|
||||
ImGui::SetWindowSize({0.f, (float)*g_pointers->m_resolution_y}, ImGuiCond_Always);
|
||||
ImGui::SetWindowSize({0.f, (float)*g_pointers->m_gta.m_resolution_y}, ImGuiCond_Always);
|
||||
|
||||
if (ImGui::Checkbox("PREVIEW"_T.data(), &g.clone_pv.preview_vehicle))
|
||||
{
|
||||
@ -86,7 +86,7 @@ namespace big
|
||||
components::input_text_with_hint("MODEL_NAME"_T, "SEARCH"_T, search, sizeof(search), ImGuiInputTextFlags_None);
|
||||
|
||||
g_mobile_service->refresh_personal_vehicles();
|
||||
if (ImGui::ListBoxHeader("###personal_veh_list", {300, static_cast<float>(*g_pointers->m_resolution_y - 188 - 38 * num_of_rows)}))
|
||||
if (ImGui::ListBoxHeader("###personal_veh_list", {300, static_cast<float>(*g_pointers->m_gta.m_resolution_y - 188 - 38 * num_of_rows)}))
|
||||
{
|
||||
if (g_mobile_service->personal_vehicles().empty())
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ namespace big
|
||||
{
|
||||
void view::spawn_vehicle()
|
||||
{
|
||||
ImGui::SetWindowSize({0.f, (float)*g_pointers->m_resolution_y}, ImGuiCond_Always);
|
||||
ImGui::SetWindowSize({0.f, (float)*g_pointers->m_gta.m_resolution_y}, ImGuiCond_Always);
|
||||
|
||||
if (ImGui::Checkbox("PREVIEW"_T.data(), &g.spawn_vehicle.preview_vehicle))
|
||||
{
|
||||
@ -66,7 +66,7 @@ namespace big
|
||||
components::input_text_with_hint("MODEL_NAME"_T, "SEARCH"_T, search, sizeof(search), ImGuiInputTextFlags_None);
|
||||
|
||||
|
||||
if (ImGui::ListBoxHeader("###vehicles", {300, static_cast<float>(*g_pointers->m_resolution_y - 188 - 38 * 4)}))
|
||||
if (ImGui::ListBoxHeader("###vehicles", {300, static_cast<float>(*g_pointers->m_gta.m_resolution_y - 188 - 38 * 4)}))
|
||||
{
|
||||
if (self::veh)
|
||||
{
|
||||
|
@ -39,14 +39,14 @@ namespace big
|
||||
const auto context_target_distance = math::calculate_distance_from_game_cam(context_target_pos);
|
||||
const auto context_target_multplr = context_target_distance > g.esp.global_render_distance[1] ? -1.f : 6.17757f / context_target_distance;
|
||||
|
||||
if (g_pointers->m_get_screen_coords_for_world_coords(context_target_pos.data, &context_screen_x, &context_screen_y))
|
||||
if (g_pointers->m_gta.m_get_screen_coords_for_world_coords(context_target_pos.data, &context_screen_x, &context_screen_y))
|
||||
{
|
||||
const auto cm = g_context_menu_service->get_context_menu();
|
||||
if (cm == nullptr)
|
||||
return;
|
||||
|
||||
const auto cm_start_x = static_cast<float>(*g_pointers->m_resolution_x) * context_screen_x + (67.5f * context_target_multplr);
|
||||
const auto cm_start_y = static_cast<float>(*g_pointers->m_resolution_y) * context_screen_y - (175.f * context_target_multplr);
|
||||
const auto cm_start_x = static_cast<float>(*g_pointers->m_gta.m_resolution_x) * context_screen_x + (67.5f * context_target_multplr);
|
||||
const auto cm_start_y = static_cast<float>(*g_pointers->m_gta.m_resolution_y) * context_screen_y - (175.f * context_target_multplr);
|
||||
|
||||
const auto cm_col = ImGui::ColorConvertFloat4ToU32({0.549f, 0.639f, 0.710f, 0.3f});
|
||||
|
||||
|
@ -26,7 +26,7 @@ namespace big
|
||||
{
|
||||
ImGui::Text("GAME_CACHE_UPDATE"_T.data());
|
||||
|
||||
if (*g_pointers->m_is_session_started)
|
||||
if (*g_pointers->m_gta.m_is_session_started)
|
||||
{
|
||||
if (ImGui::Button("GAME_CACHE_UPDATE_CACHE"_T.data()))
|
||||
{
|
||||
@ -47,7 +47,7 @@ namespace big
|
||||
g_gta_data_service->update_in_online();
|
||||
}
|
||||
|
||||
if (*g_pointers->m_game_state == eGameState::Respawn)
|
||||
if (*g_pointers->m_gta.m_game_state == eGameState::Respawn)
|
||||
{
|
||||
if (ImGui::Button("GAME_CACHE_ON_INIT"_T.data()))
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ namespace big
|
||||
static char dst_text[256];
|
||||
static char src_text[256];
|
||||
static size_t selected_index = -1;
|
||||
static float width = *g_pointers->m_resolution_x / 5.0;
|
||||
static float width = *g_pointers->m_gta.m_resolution_x / 5.0;
|
||||
|
||||
ImGui::SetNextItemWidth(width);
|
||||
ImGui::InputText("Dst", dst_text, IM_ARRAYSIZE(dst_text));
|
||||
|
@ -203,7 +203,7 @@ namespace big
|
||||
static Player selected_ped_for_player_id = -1;
|
||||
auto& player_arr = g_player_service->players();
|
||||
|
||||
if (!*g_pointers->m_is_session_started)
|
||||
if (!*g_pointers->m_gta.m_is_session_started)
|
||||
{
|
||||
selected_ped_player_id = -1;
|
||||
|
||||
@ -301,7 +301,7 @@ namespace big
|
||||
ImGui::SetItemDefaultFocus();
|
||||
}
|
||||
|
||||
if (*g_pointers->m_is_session_started)
|
||||
if (*g_pointers->m_gta.m_is_session_started)
|
||||
{
|
||||
for (auto& item : player_arr)
|
||||
{
|
||||
@ -558,7 +558,7 @@ namespace big
|
||||
ImGui::SetItemDefaultFocus();
|
||||
}
|
||||
|
||||
if (*g_pointers->m_is_session_started)
|
||||
if (*g_pointers->m_gta.m_is_session_started)
|
||||
{
|
||||
for (auto& [_, plyr] : player_arr)
|
||||
{
|
||||
|
Reference in New Issue
Block a user