diff --git a/BigBaseV2/src/gui/main_window.cpp b/BigBaseV2/src/gui/main_window.cpp index 46c845d6..f7447893 100644 --- a/BigBaseV2/src/gui/main_window.cpp +++ b/BigBaseV2/src/gui/main_window.cpp @@ -13,6 +13,7 @@ namespace big tabbar::render_self(); tabbar::render_tunables(); tabbar::render_teleport(); + tabbar::render_vehicle(); ImGui::EndTabBar(); } ImGui::End(); diff --git a/BigBaseV2/src/gui/tab_bar/tab_bar.hpp b/BigBaseV2/src/gui/tab_bar/tab_bar.hpp index 4de83b38..8b49adbf 100644 --- a/BigBaseV2/src/gui/tab_bar/tab_bar.hpp +++ b/BigBaseV2/src/gui/tab_bar/tab_bar.hpp @@ -15,6 +15,7 @@ namespace big static void render_self(); static void render_tunables(); static void render_teleport(); + static void render_vehicle(); }; } \ No newline at end of file diff --git a/BigBaseV2/src/gui/tab_bar/tab_vehicle.cpp b/BigBaseV2/src/gui/tab_bar/tab_vehicle.cpp new file mode 100644 index 00000000..e7ea9a2b --- /dev/null +++ b/BigBaseV2/src/gui/tab_bar/tab_vehicle.cpp @@ -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(); + } + } +} \ No newline at end of file