SteveDee Posted April 26, 2021 Share Posted April 26, 2021 Hello, I've just started changing my JS clientside scripts to C#, because my server is c# and I like it more than JS. I want to know what is the right way to wait for the result of "CallRemoteProc". Because my client seems to crash very often while waiting for the response... I tried with a Threading.Task and a RAGE.Task Task.Run(() => { RAGE.Task.Run(async () => { var resultObj = await RAGE.Events.CallRemoteProc("CallMyServersideFunction", arg1, arg2); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now