Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ZTzTopia/GTProxy/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The/exit command allows you to quickly leave the current world and return to the main menu without manually using the in-game exit button.
Syntax
Description
When executed, the/exit command sends a QuitToExit packet to the game client, which triggers the same action as clicking the exit button in-game. This immediately disconnects you from the current world and returns you to the main menu.
Use Cases
Quick Exit
Instantly leave a world without navigating menus
Script Automation
Exit worlds programmatically in automated workflows
Emergency Disconnect
Quickly leave dangerous or unwanted situations
World Testing
Rapidly exit during world development and testing
Examples
Basic Usage
Scripted Exit
You can also trigger the exit action from Lua scripts:Implementation Details
The command is implemented in/home/daytona/workspace/source/src/command/commands/exit_command.hpp:7-18.
QuitToExit packet and sends it to the client, which triggers the exit action.
Behavior
- Result: Always returns
Success - Side effects: Disconnects from current world, returns to main menu
- Network: Sends packet to client only (not to server)
Related Commands
/warp
Warp to a different world
/help
Show all available commands