Skip to content

Commit

Permalink
fix(shared): alt.Events.emit used unsync version of sdk method (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady authored Jan 7, 2024
1 parent a6f8fb5 commit 97f2fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/namespaces/SharedEventsNamespace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97f2fa5

Please sign in to comment.