diff --git a/BigBaseV2/src/core/globals.hpp b/BigBaseV2/src/core/globals.hpp index b64c39ed..856e3fe0 100644 --- a/BigBaseV2/src/core/globals.hpp +++ b/BigBaseV2/src/core/globals.hpp @@ -61,6 +61,7 @@ namespace big pair spectate{}; pair transaction_error{}; pair tse_freeze{}; + pair tse_sender_mismatch{}; pair vehicle_kick{}; pair teleport_to_warehouse{}; pair start_activity{}; @@ -477,6 +478,8 @@ namespace big script_handler.transaction_error.notify = script_handler_j["transaction_error"]["notify"]; script_handler.tse_freeze.log = script_handler_j["tse_freeze"]["log"]; script_handler.tse_freeze.notify = script_handler_j["tse_freeze"]["notify"]; + script_handler.tse_sender_mismatch.log = script_handler_j["tse_sender_mismatch"]["log"]; + script_handler.tse_sender_mismatch.notify = script_handler_j["tse_sender_mismatch"]["notify"]; script_handler.vehicle_kick.log = script_handler_j["vehicle_kick"]["log"]; script_handler.vehicle_kick.notify = script_handler_j["vehicle_kick"]["notify"]; script_handler.teleport_to_warehouse.log = script_handler_j["teleport_to_warehouse"]["log"]; @@ -733,6 +736,7 @@ namespace big { "spectate", return_notify_pair(script_handler_notifications.spectate) }, { "transaction_error", return_notify_pair(script_handler_notifications.transaction_error) }, { "tse_freeze", return_notify_pair(script_handler_notifications.tse_freeze) }, + { "tse_sender_mismatch", return_notify_pair(script_handler_notifications.tse_sender_mismatch) }, { "vehicle_kick", return_notify_pair(script_handler_notifications.vehicle_kick) }, { "teleport_to_warehouse", return_notify_pair(script_handler_notifications.teleport_to_warehouse) }, { "start_activity", return_notify_pair(script_handler_notifications.start_activity) } diff --git a/BigBaseV2/src/hooks/protections/script_event_handler.cpp b/BigBaseV2/src/hooks/protections/script_event_handler.cpp index 7292ee02..62ca96d4 100644 --- a/BigBaseV2/src/hooks/protections/script_event_handler.cpp +++ b/BigBaseV2/src/hooks/protections/script_event_handler.cpp @@ -27,7 +27,7 @@ namespace big if (*(int*)&args[1] != player->m_player_id && player->m_player_id != -1) { LOG(INFO) << "Hash = " << (int)args[0]; - format_string(player_name, "Wrong TSE sender", notify.ceo_kick.log, notify.ceo_kick.notify); + format_string(player_name, "TSE sender mismatch", notify.tse_sender_mismatch.log, notify.tse_sender_mismatch.notify); return true; } diff --git a/BigBaseV2/src/views/settings/view_notification_settings.cpp b/BigBaseV2/src/views/settings/view_notification_settings.cpp index 9c2519f8..1406d63d 100644 --- a/BigBaseV2/src/views/settings/view_notification_settings.cpp +++ b/BigBaseV2/src/views/settings/view_notification_settings.cpp @@ -75,16 +75,17 @@ namespace big draw_pair_option("Rotate Cam", script_event_handler.rotate_cam); draw_pair_option("Send to Cutscene", script_event_handler.send_to_cutscene); draw_pair_option("Send to Location", script_event_handler.send_to_location); + draw_pair_option("Sound Spam", script_event_handler.sound_spam); ImGui::EndGroup(); ImGui::SameLine(); ImGui::BeginGroup(); - draw_pair_option("Sound Spam", script_event_handler.sound_spam); draw_pair_option("Spectate", script_event_handler.spectate); draw_pair_option("Transaction Error", script_event_handler.transaction_error); draw_pair_option("TSE Crash", script_event_handler.crash); draw_pair_option("TSE Freeze", script_event_handler.tse_freeze); + draw_pair_option("TSE Sender Mismatch", script_event_handler.tse_sender_mismatch); draw_pair_option("Vehicle Kick", script_event_handler.vehicle_kick); draw_pair_option("Wanted Level", script_event_handler.clear_wanted_level); ImGui::EndGroup();