Jump to content
RAGE Multiplayer Community

Events.callRemote does not work


Recommended Posts

Hello! I have encountered a very strange problem recently. I have client-side: 

 
function goToZeroFromCSGO()
{
    mp.gui.chat.show(true);
    mp.gui.cursor.show(falsefalse);
    mp.game.graphics.notify('test');
    mp.events.callRemote("leaveCSGO");
}
and server-side:
 
mp.events.add("leaveCSGO", (player=>
{
    console.log('!' + player.name);
    mp.events.call('playerGoToZeroDimension'player);
});
I get the test notification, but I do not get player.name to the console. Seems like callRemote does not call the server-side event. What is the problem here? How to fix it?
Link to post
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...