Garry's Mod Wiki

Garry's Mod Wiki

  serverlist.PlayerList( string ip, function callback )

Description

Queries a server for its player list.

Arguments

1 string ip
The IP address of the server, including the port.
2 function callback
The function to be called if and when the request finishes.
Function argument(s):
1 table data - A list of players and their info. Each entry has the following fields:
  • number time - The amount of time the player is playing on the server, in seconds
  • string name - The player name
  • number score - The players score

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...