Garry's Mod Wiki

game.GetMapChangeCount

  number game.GetMapChangeCount()

Description

Returns the current map change count for the server.

This is useful to determine whether the current map is the initial map, or whether a changelevel (using map command is also detected) has occurred at any point in the server's session.

Returns

1 number
The current map change count. Will start at 1.