Discord
Steam
/
Garry's Mod
/
Developers
/
Select Random ..
Login/Join
Event Log
Select Random Player
3 replies, posted
Search
In This Thread
I was wondering if anyone could help me with creating a function to select a random player in the server.
[lua]function GetRandomPlayer() return table.Random(player.GetAll()) end[/lua]
[url]http://www.facepunch.com/showthread.php?t=772110[/url] ninja'd
Thanks, Both were helpful.
Sorry, you need to
Log In
to post a reply to this thread.