Garry's Mod Wiki

game.GetMapVersion

  number game.GetMapVersion()

Description

Returns the VBSP version of the current map.

Returns

1 number
VBSP version of the currently loaded map, will be either 19, 20 or 21 for L4D1+ maps