Jump to content
RAGE Multiplayer Community

Right way to wait for CallRemoteProc


Recommended Posts


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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...