Skip to main content

QuitGame

This function was added in DSL 5

Description

Instantly exit the game's process.

function QuitGame(status) --[[ ... ]] end

Parameters

  • status: integer - The exit status code. This is typically 0 for a normal exit, but can be any integer value.

Return Values

This function doesn't return.

Example

QuitGame(0)