Garry's Mod Wiki

navmesh.GetNavAreaCount

  number navmesh.GetNavAreaCount()

Description

Returns the highest ID of all nav areas on the map. While this can be used to get all nav areas, this number may not actually be the actual number of nav areas on the map.

Returns

1 number
The highest ID of all nav areas on the map.