Garry's Mod Wiki

game.GetMap

  string game.GetMap()

Description

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

In Multiplayer this does not return the current map in the CLIENT realm before GM:Initialize.

Returns

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

Example

Output: gm_flatgrass