Skip to content

GetGameMode

Read the current game mode from lobby options.

options:GetGameMode()

Inputs: None beyond the GameOptions receiver.

Output: The integer value, or nil when it cannot be read.

Errors and unavailable states: An unavailable lobby or unreadable native setting returns nil; no Lua argument is required.

Call on a fresh value from GetCurrentGameOptions(). See Lobby options overview.