Перейти к содержанию

Player::kickSilent

Материал из RAGE MP Wiki Archive

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.

Syntax

player.kickSilent();

Examples

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


See Also