diff --git a/BigBaseV2/src/features/functions.cpp b/BigBaseV2/src/features/functions.cpp index bbe43e46..32ce70b8 100644 --- a/BigBaseV2/src/features/functions.cpp +++ b/BigBaseV2/src/features/functions.cpp @@ -53,4 +53,30 @@ namespace big::features::functions { *script_global(1590682).at(PLAYER::PLAYER_ID(), 883).at(211).at(6).as() = rank; } + + void toggle_protections(bool toggle) + { + auto &protections = g_settings.options["settings"]["protections"]; + + protections["bounty"] = toggle; + protections["ceo_ban"] = toggle; + protections["ceo_kick"] = toggle; + protections["ceo_money"] = toggle; + protections["clear_wanted_level"] = toggle; + protections["fake_deposit"] = toggle; + protections["force_mission"] = toggle; + protections["gta_banner"] = toggle; + protections["personal_vehicle_destroyed"] = toggle; + protections["remote_off_radar"] = toggle; + protections["rotate_cam"] = toggle; + protections["send_to_cutscene"] = toggle; + protections["send_to_island"] = toggle; + protections["sound_spam"] = toggle; + protections["spectate"] = toggle; + protections["force_teleport"] = toggle; + protections["transaction_error"] = toggle; + protections["vehicle_kick"] = toggle; + + g_settings.save(); + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/functions.hpp b/BigBaseV2/src/features/functions.hpp index 9147002f..9a8f5a9b 100644 --- a/BigBaseV2/src/features/functions.hpp +++ b/BigBaseV2/src/features/functions.hpp @@ -10,4 +10,5 @@ namespace big::features::functions void set_car_sell_value(int value); void set_player_level(int level); void spoof_rank(int rank); + void toggle_protections(bool toggle); } \ No newline at end of file