feat(GUI): Added vehicle tab
This commit is contained in:
parent
a98f93b212
commit
d537004f46
@ -13,6 +13,7 @@ namespace big
|
||||
tabbar::render_self();
|
||||
tabbar::render_tunables();
|
||||
tabbar::render_teleport();
|
||||
tabbar::render_vehicle();
|
||||
ImGui::EndTabBar();
|
||||
}
|
||||
ImGui::End();
|
||||
|
@ -15,6 +15,7 @@ namespace big
|
||||
static void render_self();
|
||||
static void render_tunables();
|
||||
static void render_teleport();
|
||||
static void render_vehicle();
|
||||
};
|
||||
|
||||
}
|
56
BigBaseV2/src/gui/tab_bar/tab_vehicle.cpp
Normal file
56
BigBaseV2/src/gui/tab_bar/tab_vehicle.cpp
Normal file
@ -0,0 +1,56 @@
|
||||
#pragma once
|
||||
#include "tab_bar.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tabbar::render_vehicle()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Vehicle"))
|
||||
{
|
||||
if (ImGui::Button("Repair Vehicle"))
|
||||
{
|
||||
QUEUE_JOB_BEGIN_CLAUSE()
|
||||
{
|
||||
Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_playerId), false);
|
||||
|
||||
if (veh)
|
||||
{
|
||||
VEHICLE::SET_VEHICLE_FIXED(veh);
|
||||
|
||||
features::notify::above_map("Vehicle has been repaired.");
|
||||
}
|
||||
}QUEUE_JOB_END_CLAUSE
|
||||
}
|
||||
|
||||
if (ImGui::Button("Clean Vehicle"))
|
||||
{
|
||||
QUEUE_JOB_BEGIN_CLAUSE()
|
||||
{
|
||||
Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_playerId), false);
|
||||
|
||||
if (veh)
|
||||
{
|
||||
VEHICLE::SET_VEHICLE_DIRT_LEVEL(veh, 0.0);
|
||||
|
||||
features::notify::above_map("Vehicle has been cleaned.");
|
||||
}
|
||||
}QUEUE_JOB_END_CLAUSE
|
||||
}
|
||||
|
||||
if (ImGui::Button("Bullet Proof Tyres"))
|
||||
{
|
||||
QUEUE_JOB_BEGIN_CLAUSE()
|
||||
{
|
||||
Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_playerId), false);
|
||||
|
||||
if (veh)
|
||||
{
|
||||
VEHICLE::SET_VEHICLE_TYRES_CAN_BURST(veh, false);
|
||||
}
|
||||
}QUEUE_JOB_END_CLAUSE
|
||||
}
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user