Skip to content

OnGameModeExit

The server shuts down or the mode is about to be reloaded.

The last callback of a mode’s life. Persist what you need with SetServerData or SetSavedData; the objects the mode made are torn down by the server right after this.

function OnGameModeExit()
-- ...
end

nothing

function OnGameModeExit()
SetServerData("rounds_played", tostring(roundsPlayed))
end

OnGameModeInit · ReloadGameMode · the Server and timers group of the index