Garry's Mod Wiki

search

The search library

Methods

search.AddProvider( function provider, string id = "nil" )
Adds a search result provider. For examples, see gamemodes/sandbox/gamemode/cl_search_models. lua
table search.GetResults( string query, string types = "nil", number maxResults = 1024 )
Retrieves search results.