refactor!: Modify command argument handling and move on_
method to bool_command (#1826)
This commit is contained in:
@ -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;
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user