diff --git a/BigBaseV2/src/function_types.hpp b/BigBaseV2/src/function_types.hpp index 880fe131..9b3769e9 100644 --- a/BigBaseV2/src/function_types.hpp +++ b/BigBaseV2/src/function_types.hpp @@ -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); } diff --git a/BigBaseV2/src/pointers.cpp b/BigBaseV2/src/pointers.cpp index 5167cd76..d9f71168 100644 --- a/BigBaseV2/src/pointers.cpp +++ b/BigBaseV2/src/pointers.cpp @@ -132,6 +132,11 @@ namespace big { m_error_screen = ptr.as(); }); + + 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(); + }); main_batch.run(memory::module(nullptr)); diff --git a/BigBaseV2/src/pointers.hpp b/BigBaseV2/src/pointers.hpp index 1d331a7e..9772300d 100644 --- a/BigBaseV2/src/pointers.hpp +++ b/BigBaseV2/src/pointers.hpp @@ -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{};