- Documentation
- Server functions
- getPlayerCount
Function
getPlayerCount
Returns the number of players on the server.
Syntax
int getPlayerCount()Returns
Player count.
Example
addEventHandler("onPlayerJoin", root, function()
outputChatBox("Graczy online: " .. getPlayerCount())
end)