Calling BP Functions from C++

How can I Call a Function via C++?

I’ve found the function “UObject::FindFunction” which allows me to find and get a UFunction instance by a name and UObject instance, I checked and it returns a valid pointer. Now I need to call this function, but how?
I thought of “UObject::CallFunction” but idk what I should use for Z_PARAM_RESULT and Stack… I tried and made a FFrame, and used the nullptr for Z_PARAM_RESULT, cause my function has at the moment no returns or params. But if I call it, it just crashes with “access violation reading location”
I can’t use CallFunctionRemote or CallFunctionByNameWithArguments, except there is an easy way to get the function pointer of CallFunctionRemote xD

I don’t know the answer to your exact question, so apologies in advance. However, the blueprint and C++ framework provide a solution for a similar situation: BlueprintNativeEvents. In short this allows you to have both a C++ and a Blueprint implementation of a function. I recommend reading this guide on the wiki for a quick deep dive. This solution is especially useful when you have generic logic implemented in C++, but you also want specific logic executed in your Blueprint.

This may or may not help your exact situation, since I don’t know the exact scenario where you are using your function call.