From Garry's Mod
Revision as of 22:00, 18 April 2014 by Robotboy655 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 serverlist.PlayerList( )


Queries a server for its player list.


string ip

The IP address of the server, including the port.


function callback

The function to be called if and when the request finishes. Function has one argument, a table containing tables with player info.

Each table with player info has next 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

Personal tools