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

Page Links


Special Pages


Wikis

?

Render Time: 35ms

DB GetPage 4
Generate Html 6
SaveChanges (1) 11
Render Body 0
Render Sidebar 12