Player::kickSilent

From RAGE Multiplayer Wiki

Server-Side
Function

 JavaScript



Silently kicks the player which will then reconnect them back to the server. Useful for quick reconnects without going through the UI. The client will act as if it has timed out.

JavaScript Syntax

Syntax

player.kickSilent();

Examples

Server-Side
mp.events.addCommand('reconnect', (player) => {
    player.outputChatBox("Reconnecting you to the server...")
    player.kickSilent();
});


See Also