Garry's Mod Wiki

game.MapLoadType

  string game.MapLoadType()

Description

Returns the map load type of the current map.

After changing the map with the console command changelevel, "newgame" is returned. With changelevel2 (single player only), "transition" is returned.

Returns

1 string
The load type. Possible values are: "newgame", "loadgame", "transition", "background".