game.GetMap
From GMod Wiki
| Function | |
| Syntax |
game.GetMap( ) Where is this used? |
| Description: | |
| Retrieve the current map name. | |
| Returns: | String |
| Part of Library: | Game |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Game.GetMap]Game.GetMap [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | This example prints the current map name to the console. |
|---|---|
| Used on | |
| Code | Msg("The current map is " .. game.GetMap() .. "\n") |
| Output | "gm_flatgrass" (for example) |