28 lines
558 B
C++
28 lines
558 B
C++
![]() |
#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();
|
||
|
}
|
||
|
}
|
||
|
}
|