diff --git a/BigBaseV2/src/features.cpp b/BigBaseV2/src/features.cpp index bfbfa5d4..31279b76 100644 --- a/BigBaseV2/src/features.cpp +++ b/BigBaseV2/src/features.cpp @@ -19,6 +19,7 @@ namespace big no_ragdoll(); off_radar(); spoof_rank(); + sticky_tyres(); super_sprint(); } diff --git a/BigBaseV2/src/features.hpp b/BigBaseV2/src/features.hpp index 9d4fc56b..b1fd11a3 100644 --- a/BigBaseV2/src/features.hpp +++ b/BigBaseV2/src/features.hpp @@ -30,6 +30,7 @@ namespace big void no_ragdoll(); void off_radar(); void spoof_rank(); + void sticky_tyres(); void super_sprint(); void update_screen_sizes(); diff --git a/BigBaseV2/src/features/sticky_tyres.cpp b/BigBaseV2/src/features/sticky_tyres.cpp new file mode 100644 index 00000000..d9e7ad3a --- /dev/null +++ b/BigBaseV2/src/features/sticky_tyres.cpp @@ -0,0 +1,28 @@ +#include "features.hpp" + +namespace big +{ + void features::sticky_tyres() + { + if (g_settings.options["sticky_tyres"].get()) + { + QUEUE_JOB_BEGIN_CLAUSE() + { + + Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false); + + if (veh) + { + while (!NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(veh)) + { + NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(veh); + + script::get_current()->yield(); + } + + VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(veh, 5.f); + } + }QUEUE_JOB_END_CLAUSE + } + } +} \ 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 index 2bbf717d..f63f8025 100644 --- a/BigBaseV2/src/gui/tab_bar/tab_vehicle.cpp +++ b/BigBaseV2/src/gui/tab_bar/tab_vehicle.cpp @@ -9,6 +9,8 @@ namespace big { ImGui::Checkbox("No Bike Fall", g_settings.options["no_bike_fall"].get()); + ImGui::Checkbox("Sticky Tyres", g_settings.options["sticky_tyres"].get()); + if (ImGui::Button("Repair Vehicle")) { QUEUE_JOB_BEGIN_CLAUSE() diff --git a/BigBaseV2/src/settings.h b/BigBaseV2/src/settings.h index be9de1af..c1b7d477 100644 --- a/BigBaseV2/src/settings.h +++ b/BigBaseV2/src/settings.h @@ -21,6 +21,7 @@ namespace big "ragdoll": false, "rank": 6969, "spoof_rank": false, + "sticky_tyres": false, "super_sprint": false })"_json;