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.

32 lines
722 B
C++

#include "gui/tab_bar.hpp"
namespace big
{
void tabbar::player_drop()
{
if (ImGui::BeginTabItem("Drop"))
{
if (ImGui::Button("Drop RP"))
{
QUEUE_JOB_BEGIN_CLAUSE()
{
Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_selectedPlayer.id), true);
func::create_ambient_rp(coords);
}QUEUE_JOB_END_CLAUSE
}
if (ImGui::Button("Drop Money (!)"))
{
QUEUE_JOB_BEGIN_CLAUSE()
{
Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_selectedPlayer.id), true);
func::create_ambient_money(coords, rand() % 500 + 2000);
}QUEUE_JOB_END_CLAUSE
}
ImGui::EndTabItem();
}
}
}