Player::kickSilent

From RAGE Multiplayer Wiki
Revision as of 23:01, 20 April 2020 by MrPancakers2 (talk | contribs) (Created page with "__NOTOC__ {{ServersideJsFunction}} Silently kicks the player which will then reconnect them back to the server. Useful for quick reconnects without going through the UI. The c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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