This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.

28 lines
558 B
C++
Raw Normal View History

#include "gui/tab_bar.hpp"
namespace big
{
void tabbar::player_teleport()
{
if (ImGui::BeginTabItem("Teleport"))
{
if (ImGui::Button("Teleport to Player"))
{
QUEUE_JOB_BEGIN_CLAUSE()
{
features::teleport::teleport_to_player(g_selectedPlayer.id);
}QUEUE_JOB_END_CLAUSE
}
if (ImGui::Button("Teleport into Vehicle"))
{
QUEUE_JOB_BEGIN_CLAUSE()
{
features::teleport::teleport_into_player_vehicle(g_selectedPlayer.id);
}QUEUE_JOB_END_CLAUSE
}
ImGui::EndTabItem();
}
}
}