Home / Lua / Client / Game / Functions / GetState


Returns    GUIState
Prototype    Game:GetState()
Description    No description

Description

Returns the current GUIState of the game.

Examples

Don't draw over main menu, map, or loading screen

function Render()
	if Game:GetState() == GUIState.Game then
		-- Do your drawing here
	end
end