feat(Pointers): Added trigger_script_event

This commit is contained in:
Yimura 2021-05-21 00:59:09 +02:00
parent 05f591fb9c
commit f01875d2c9
3 changed files with 9 additions and 0 deletions

View File

@ -15,4 +15,6 @@ namespace big::functions
using gta_thread_kill = __int64(GtaThread* a1);
using increment_stat_event = bool(uint64_t net_event_struct, int64_t sender, int64_t a3);
using trigger_script_event = int(int unk0, int64_t* args, int argCount, int bitFlags);
}

View File

@ -132,6 +132,11 @@ namespace big
{
m_error_screen = ptr.as<decltype(m_error_screen)>();
});
main_batch.add("Trigger Script Event", "48 8B C4 48 89 58 08 48 89 68 10 48 89 70 18 48 89 78 20 41 56 48 81 EC ? ? ? ? 45 8B F0 41 8B F9", [this](memory::handle ptr)
{
m_trigger_script_event = ptr.as<decltype(m_trigger_script_event)>();
});
main_batch.run(memory::module(nullptr));

View File

@ -47,6 +47,8 @@ namespace big
functions::gta_thread_kill* m_gta_thread_kill{};
functions::increment_stat_event* m_increment_stat_event{};
functions::trigger_script_event* m_trigger_script_event{};
};
inline pointers *g_pointers{};