mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-01 12:02:55 +08:00
Bug fix time (#1549)
* fix(PlayerTP): Get Current only works once * chore(README): removed features from TOC * fix(ViewNetwork): SCTV join translation * refactor: Use tunable service for no idle kick * fix(Spoofing): check for valid model before spoofing * feat(Spectate): Remove freeze and hide player blip * fix(Spectate): case of chat not being visible as spectator. * feat(Matchmaking): safer max search limit for match searching * fix(Player/Toxic): Wanted Level small text translation
This commit is contained in:
@ -101,7 +101,7 @@ namespace big
|
||||
components::sub_title("Misc");
|
||||
if (ImGui::BeginListBox("##miscsession", get_listbox_dimensions()))
|
||||
{
|
||||
ImGui::Checkbox("Join Sctv", &g.session.join_in_sctv_slots); //CHANGE TRANSLATION JOIN_IN_SCTV
|
||||
ImGui::Checkbox("JOIN_IN_SCTV"_T.data(), &g.session.join_in_sctv_slots);
|
||||
if (ImGui::IsItemHovered())
|
||||
ImGui::SetTooltip("JOIN_IN_SCTV_DESC"_T.data());
|
||||
|
||||
|
@ -116,16 +116,13 @@ namespace big
|
||||
"Interior");
|
||||
|
||||
static float new_location[3];
|
||||
static float current_location[3] = {
|
||||
g_player_service->get_selected()->get_ped()->m_navigation->get_position()->x,
|
||||
g_player_service->get_selected()->get_ped()->m_navigation->get_position()->y,
|
||||
g_player_service->get_selected()->get_ped()->m_navigation->get_position()->z};
|
||||
auto& current_location = *reinterpret_cast<float(*)[3]>(g_player_service->get_selected()->get_ped()->m_navigation->get_position());
|
||||
|
||||
components::small_text("Custom TP");
|
||||
ImGui::SetNextItemWidth(400);
|
||||
ImGui::InputFloat3("##customlocation", new_location);
|
||||
components::button("TP", [] {
|
||||
teleport::teleport_player_to_coords(g_player_service->get_selected(), {new_location[0], new_location[1], new_location[2]});
|
||||
teleport::teleport_player_to_coords(g_player_service->get_selected(), *reinterpret_cast<rage::fvector3*>(&new_location));
|
||||
});
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Get current"))
|
||||
|
@ -47,7 +47,7 @@ namespace big
|
||||
components::player_command_button<"fakeban">(g_player_service->get_selected(), {});
|
||||
|
||||
static int wanted_level;
|
||||
components::small_text("WANTED_LVL");
|
||||
components::small_text("WANTED_LVL"_T);
|
||||
ImGui::SliderInt("##wantedlevelslider", &wanted_level, 0, 5);
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"wanted">(g_player_service->get_selected(), {(uint64_t)wanted_level}, "Set");
|
||||
|
@ -45,7 +45,7 @@ namespace big
|
||||
components::command_checkbox<"noclip">();
|
||||
components::command_checkbox<"noragdoll">();
|
||||
components::command_checkbox<"fastrun">();
|
||||
ImGui::Checkbox("NO_IDLE_KICK"_T.data(), &g.tunables.no_idle_kick);
|
||||
components::command_checkbox<"noidlekick">();
|
||||
components::command_checkbox<"walkunder">();
|
||||
if (!g.self.super_jump)
|
||||
components::command_checkbox<"beastjump">();
|
||||
|
Reference in New Issue
Block a user