Garry's Mod Wiki

navmesh.GetNavAreaCount

  number navmesh.GetNavAreaCount()

Description

Returns the total count of nav areas on the map. If you want to get all nav areas, use navmesh.GetAllNavAreas instead as nav areas IDs are not always sequential.

Returns

1 number
The total count of nav areas on the map.