server.QueryData
Queries the servers for it's information.
Fields
| Name | Type | Description |
|---|---|---|
directory | string | The game directory to get the servers for = "garrysmod" |
type | string | Type of servers to retrieve. Valid values are internet, favorite, history and lan |
appid | number | Steam application ID to get the servers for = 4000 |
query_failed | function | Called if the query has failed, called with the servers IP Address |
finished | function | Called when the query is finished. No arguments |
Static functions
#server.QueryData.server_queried
function server.QueryData.server_queried(info: server.Info): boolean?
Called when a new server is found and queried.
Function argument(s):
- server.Info
info- The information of the queried server.
Function return value(s):
- boolean
stop- Returnfalseto stop the query.
Parameters
| Name | Type | Description |
|---|---|---|
info | server.Info |
Returns
| Type | Name | Description |
|---|---|---|
boolean? |