feat(Protection): Added TASK_TEMP_VEHICLE_ACTION anti-crash

This commit is contained in:
Yimura
2022-05-10 20:23:48 +02:00
parent 5b87f640f9
commit 7ddca9d877
3 changed files with 41 additions and 3 deletions

View File

@ -4,7 +4,7 @@ namespace big
{
void draw_pair_option(const std::string_view name, decltype(g->notifications.gta_thread_kill)& option)
{
ImGui::Text(name.data());
ImGui::Text("%s", name.data());
ImGui::PushID(name.data());
ImGui::Checkbox("Log", &option.log);
@ -40,13 +40,14 @@ namespace big
ImGui::BeginGroup();
draw_pair_option("Clear Ped Tasks", received_event.clear_ped_task);
draw_pair_option("Modder Detection", received_event.modder_detect);
draw_pair_option("Report Cash Spawn", received_event.report_cash_spawn);
ImGui::EndGroup();
ImGui::SameLine();
ImGui::BeginGroup();
draw_pair_option("Report Cash Spawn", received_event.report_cash_spawn);
draw_pair_option("Request Control Event", received_event.request_control_event);
draw_pair_option("Vehicle Temp Action", received_event.vehicle_temp_action);
ImGui::EndGroup();