#pragma once #include "native_hooks.hpp" #include "script_global.hpp" namespace big { namespace shop_controller { inline void SET_WARNING_MESSAGE_WITH_HEADER(rage::scrNativeCallContext* src) { if (auto entry_line = src->get_arg(1); !strcmp(entry_line, "CTALERT_F_2")) { if (g.notifications.transaction_rate_limit.log) LOG(WARNING) << "Received transaction rate limit"; if (g.notifications.transaction_rate_limit.notify) g_notification_service->push_warning("Transaction Rate Limit", "You're receiving transaction rate limits, whatever you're doing do it less."); *script_global(4536677).as() = 0; return; } HUD::SET_WARNING_MESSAGE_WITH_HEADER(src->get_arg(0), src->get_arg(1), src->get_arg(2), src->get_arg(3), src->get_arg(4), src->get_arg(5), src->get_arg(6), src->get_arg(7), src->get_arg(8), src->get_arg(9)); } } }