mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-30 03:32:52 +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:
@ -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");
|
||||
|
Reference in New Issue
Block a user