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

Player::kickSilent

Материал из RAGE MP Wiki Archive
Версия от 23:01, 20 апреля 2020; imported>MrPancakers2 (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...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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