Personal tools

Lua/Client/Game/Functions/GetState

From JC2-MP Documentation

< Lua‎ | Client‎ | Game
Jump to: navigation, search

Returns    GUIState
Prototype    Game:GetState()
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