Hello, how would you get all the players in the server by their Netusers?
Because, I know i will be using a
Code:for k, v in pairs(players)do -- etc.... end
Solved Getting all players?
Discussion in 'Rust Development' started by xrayhunter, Dec 30, 2015.
-
Calytic Community Admin Community Mod
Code:local itPlayerList = global.BasePlayer.activePlayerList:GetEnumerator() -- Iterate through the online player list while itPlayerList:MoveNext() do -- Get the player his/her display name local displayName = itPlayerList.Current.displayName -- do something clever here end