Garry's Mod Wiki

game.GetMapChangeCount

  number game.GetMapChangeCount()

Recently Added

This was recently added in version (2025.11.28). It might only be available on the Dev Branch right now.

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.