GetPlayerNetworkStats
From Onset Developer Wiki
Description
Gets the clients' NetworkStats
Syntax
GetPlayerNetworkStats(player)
Parameters
- player
The player identifier
Return Value
- packetlossTotal, packetlossLastSecond, messagesInResendBuffer, bytesInResendBuffer, bytesSend, bytesReceived, bytesResent, bytesSendTotal, bytesReceivedTotal, bytesResentTotal, isLimitedByCongestionControl, isLimitedByOutgoingBandwidthLimit
Example
for name, value in pairs(GetPlayerNetworkStats(player))
print(name .. " -> " .. value)
do