Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect player to another server #2394

Open
Zelyutin opened this issue Dec 19, 2024 · 0 comments
Open

Redirect player to another server #2394

Zelyutin opened this issue Dec 19, 2024 · 0 comments
Labels
Class: enhancement Something can be improved

Comments

@Zelyutin
Copy link

Zelyutin commented Dec 19, 2024

Description of the problem

It may be useful to redirect players to another server from some multi-server lobbies.
For some security reasons it may only be available from server-side.
Also destination server must approve redirection to prevent unwanted connections, so some passcodes, signatures, departure servers white lists may be implemented via callback acceptance by server developers themselves.

Desired solution for the problem

alt.redirectPlayer(player, serverIp, port, extraData);

alt.on('redirectRequested', (player, fromServerIp, fromServerPort, extraData) => {
   return true;
});

Alternatives you considered

No response

Additional context

No response

@Zelyutin Zelyutin added the Class: enhancement Something can be improved label Dec 19, 2024
@Zelyutin Zelyutin changed the title Redirect player to another server function Redirect player to another server Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: enhancement Something can be improved
Projects
None yet
Development

No branches or pull requests

1 participant