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.

29 lines
572 B
C++

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