Garry's Mod Wiki

game.GetMapVersion

  number, number game.GetMapVersion()

Description

Returns the revision (Not to be confused with VBSP Version) of the current map.

Map revision is the amount of times the map file was saved in Hammer at the time of the map being compiled. This is useful to detect when a map has changed.

Returns

1 number
Revision of the currently loaded map.
2 number
BSP version.
This was recently added in version (2026.02.06). It might only be available on the Dev Branch right now.