game.GetMap

From Garry's Mod
Jump to: navigation, search
 game.GetMap( )

Contents

Description

Returns the name of the current map, without a file extension. On the menu state, returns "menu".

Returns

string

The name of the current map, without a file extension.

Examples

Example

print(game.GetMap())

Output:

gm_flatgrass
Personal tools
Navigation