mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
feat(Features): Added no bike fall looped feature
This commit is contained in:
parent
40f320046f
commit
7876b48bee
@ -14,6 +14,7 @@ namespace big
|
||||
|
||||
god_mode();
|
||||
never_wanted();
|
||||
no_bike_fall();
|
||||
no_idle_kick();
|
||||
no_ragdoll();
|
||||
off_radar();
|
||||
|
@ -25,6 +25,7 @@ namespace big
|
||||
|
||||
void god_mode();
|
||||
void never_wanted();
|
||||
void no_bike_fall();
|
||||
void no_idle_kick();
|
||||
void no_ragdoll();
|
||||
void off_radar();
|
||||
|
11
BigBaseV2/src/features/no_bike_fall.cpp
Normal file
11
BigBaseV2/src/features/no_bike_fall.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include "features.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void features::no_bike_fall()
|
||||
{
|
||||
bool bNoBikeFall = g_settings.options["no_bike_fall"].get<bool>();
|
||||
|
||||
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(PLAYER::PLAYER_PED_ID(), bNoBikeFall);
|
||||
}
|
||||
}
|
@ -7,6 +7,8 @@ namespace big
|
||||
{
|
||||
if (ImGui::BeginTabItem("Vehicle"))
|
||||
{
|
||||
ImGui::Checkbox("No Bike Fall", g_settings.options["no_bike_fall"].get<bool*>());
|
||||
|
||||
if (ImGui::Button("Repair Vehicle"))
|
||||
{
|
||||
QUEUE_JOB_BEGIN_CLAUSE()
|
||||
|
@ -15,6 +15,7 @@ namespace big
|
||||
R"({
|
||||
"god_mode": false,
|
||||
"never_wanted": false,
|
||||
"no_bike_fall": false,
|
||||
"no_idle_kick": false,
|
||||
"off_radar": false,
|
||||
"ragdoll": false,
|
||||
|
Loading…
Reference in New Issue
Block a user