diff --git a/BigBaseV2/src/core/globals.hpp b/BigBaseV2/src/core/globals.hpp index 22c69f60..773e7f55 100644 --- a/BigBaseV2/src/core/globals.hpp +++ b/BigBaseV2/src/core/globals.hpp @@ -154,6 +154,7 @@ namespace big { bool preview_vehicle = false; bool spawn_inside = false; + bool spawn_maxed = false; }; struct spoofing @@ -391,6 +392,7 @@ namespace big this->spawn.preview_vehicle = j["spawn"]["preview_vehicle"]; this->spawn.spawn_inside = j["spawn"]["spawn_inside"]; + this->spawn.spawn_maxed = j["spawn"]["spawn_maxed"]; this->spoofing.spoof_ip = j["spoofing"]["spoof_ip"]; this->spoofing.spoof_rockstar_id = j["spoofing"]["spoof_rockstar_id"]; @@ -569,7 +571,8 @@ namespace big { "spawn", { { "preview_vehicle", this->spawn.preview_vehicle }, - { "spawn_inside", this->spawn.spawn_inside } + { "spawn_inside", this->spawn.spawn_inside }, + { "spawn_maxed", this->spawn.spawn_maxed} } }, { diff --git a/BigBaseV2/src/util/vehicle.hpp b/BigBaseV2/src/util/vehicle.hpp index f6746bf7..ac25f250 100644 --- a/BigBaseV2/src/util/vehicle.hpp +++ b/BigBaseV2/src/util/vehicle.hpp @@ -84,4 +84,23 @@ namespace big::vehicle return -1; } + + inline void telport_into_veh(Vehicle veh) + { + PED::SET_PED_INTO_VEHICLE(PLAYER::PLAYER_PED_ID(), veh, -1); + } + + inline void max_vehicle(Vehicle veh) + { + VEHICLE::SET_VEHICLE_MOD_KIT(veh, 0); + VEHICLE::TOGGLE_VEHICLE_MOD(veh, 18 /* Turbo */, TRUE); + VEHICLE::TOGGLE_VEHICLE_MOD(veh, 20 /* Tire Smoke */, TRUE); + VEHICLE::TOGGLE_VEHICLE_MOD(veh, 17 /* Xenon Headlights */, TRUE); + VEHICLE::SET_VEHICLE_WINDOW_TINT(veh, 1); + for (int i = 0; i < 50; i++) + { + VEHICLE::SET_VEHICLE_MOD(veh, i, VEHICLE::GET_NUM_VEHICLE_MODS(veh, i) - 1, true); + } + } + } \ No newline at end of file diff --git a/BigBaseV2/src/views/view_spawn.cpp b/BigBaseV2/src/views/view_spawn.cpp index 88a68263..d4ad1f9b 100644 --- a/BigBaseV2/src/views/view_spawn.cpp +++ b/BigBaseV2/src/views/view_spawn.cpp @@ -19,6 +19,8 @@ namespace big ImGui::Checkbox("Preview", &g->spawn.preview_vehicle); ImGui::SameLine(); ImGui::Checkbox("Spawn In", &g->spawn.spawn_inside); + ImGui::SameLine(); + ImGui::Checkbox("Spawn Maxed", &g->spawn.spawn_maxed); components::input_text_with_hint("Model Name", "Search", model, sizeof(model), ImGuiInputTextFlags_EnterReturnsTrue, [] { @@ -27,6 +29,12 @@ namespace big if (g->spawn.spawn_inside) PED::SET_PED_INTO_VEHICLE(PLAYER::PLAYER_PED_ID(), veh, -1); + + if (g->spawn.spawn_maxed) + { + vehicle::max_vehicle(veh); + } + }); if (ImGui::ListBoxHeader("###vehicles", { ImGui::GetWindowWidth(), ImGui::GetWindowHeight() })) { @@ -58,7 +66,15 @@ namespace big const Vehicle veh = vehicle::spawn(item["Name"], location, 0.f); if (g->spawn.spawn_inside) - PED::SET_PED_INTO_VEHICLE(PLAYER::PLAYER_PED_ID(), veh, -1); + { + vehicle::telport_into_veh(veh); + } + + if (g->spawn.spawn_maxed) + { + vehicle::max_vehicle(veh); + } + }); if (g->spawn.preview_vehicle && ImGui::IsItemHovered())