Logout
Players go back to character select from in game with /logout, or from your radial menu or any other script through an export.
Config.Logout = {
enabled = true,
command = 'logout', -- '' for no chat command, the exports still work
ace = false, -- an ace permission needed, false = everyone
cooldown = 60, -- seconds before the same player can log out again, 0 = no limit
delay = 5, -- seconds the player has to stand still first, 0 = instant
cancelOnMove = true, -- moving or getting hurt during the delay cancels it
blockWhenDead = true,
blockWhenCuffed = true,
blockWhenJailed = false, -- RSG
blockWhenMounted = false, -- on a horse or in a wagon
}๐ From a menu
exports['kartik-multicharacter']:Logout() -- client
exports['kartik-multicharacter']:Logout(source) -- serverBoth run the same checks as the command. Use your folder name if you renamed the resource.
VORP can't switch characters while a player is connected, so logout there shows a notice to reconnect. Reconnecting lands on character select.