Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...