Garry's Mod Wiki



  serverlist.PlayerList( string ip, function callback )


Queries a server for its player list.


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 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

Special Pages



Render Time: 67ms

DB GetPage 48
Generate Html 5
SaveChanges (1) 6
Render Body 0
Render Sidebar 7