refactor!: Modify command argument handling and move on_ method to bool_command (#1826)

This commit is contained in:
Andreas Maerten
2023-07-26 22:22:40 +02:00
committed by GitHub
parent f73c1bdc98
commit 96493b5a22
104 changed files with 562 additions and 381 deletions

View File

@ -250,7 +250,7 @@ namespace big
while (g_running)
{
if (g_gui->is_open() || HUD::IS_PAUSE_MENU_ACTIVE()
|| (*g_pointers->m_gta.m_chat_data && (*g_pointers->m_gta.m_chat_data)->m_chat_open))
|| (*g_pointers->m_gta.m_chat_data && (*g_pointers->m_gta.m_chat_data)->m_chat_open) || g.cmd_executor.enabled)
{
script::get_current()->yield();
continue;

View File

@ -21,7 +21,7 @@ namespace big
if (m_cooldown.has_value())
m_wakeup = std::chrono::high_resolution_clock::now() + m_cooldown.value();
command::get(m_command_hash)->call(std::vector<uint64_t>());
command::get(m_command_hash)->call({});
}
rage::joaat_t hotkey::name_hash() const