From 97f2fa5951f339569489e37b1de1f576742434d0 Mon Sep 17 00:00:00 2001 From: xshady <54737754+xxshady@users.noreply.github.com> Date: Mon, 8 Jan 2024 02:35:45 +0300 Subject: [PATCH] fix(shared): `alt.Events.emit` used unsync version of sdk method (#160) --- shared/src/namespaces/SharedEventsNamespace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/namespaces/SharedEventsNamespace.cpp b/shared/src/namespaces/SharedEventsNamespace.cpp index 24b4f6668..40bab2b54 100644 --- a/shared/src/namespaces/SharedEventsNamespace.cpp +++ b/shared/src/namespaces/SharedEventsNamespace.cpp @@ -42,7 +42,7 @@ static void Emit(js::FunctionContext& ctx) args.push_back(val); } - alt::ICore::Instance().TriggerLocalEvent(eventName, args); + alt::ICore::Instance().TriggerLocalEventOnMain(eventName, args); } // clang-format off