mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-27 18:42:58 +08:00

Co-authored-by: mrwoowoo <github@hiqaq.com> Co-authored-by: LiamD-Flop <40887493+LiamD-Flop@users.noreply.github.com>
31 lines
930 B
C++
31 lines
930 B
C++
#include "views/view.hpp"
|
|
#include "util/teleport.hpp"
|
|
#include "util/vehicle.hpp"
|
|
#include "util/troll.hpp"
|
|
|
|
namespace big
|
|
{
|
|
void view::player_troll()
|
|
{
|
|
if (ImGui::TreeNode("TROLL"_T.data()))
|
|
{
|
|
components::player_command_button<"playertp">(g_player_service->get_selected());
|
|
ImGui::SameLine();
|
|
components::player_command_button<"bring">(g_player_service->get_selected());
|
|
|
|
components::player_command_button<"playervehtp">(g_player_service->get_selected());
|
|
components::player_command_button<"rcplayer">(g_player_service->get_selected());
|
|
|
|
static int bounty_value = 0;
|
|
|
|
ImGui::SliderInt("BOUNTY"_T.data(), &bounty_value, 0, 10000);
|
|
ImGui::SameLine();
|
|
components::command_checkbox<"anonbounty">();
|
|
ImGui::SameLine();
|
|
components::button("SET"_T, [] { troll::set_bounty_on_player(g_player_service->get_selected(), bounty_value, g.session.anonymous_bounty);});
|
|
|
|
ImGui::TreePop();
|
|
}
|
|
}
|
|
}
|