GetPlayerNetworkStats: Difference between revisions
From Onset Developer Wiki
No edit summary |
FlyingFork (talk | contribs) No edit summary |
||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
for name, value in pairs(GetPlayerNetworkStats(player)) | |||
print(name .. " -> " .. value) | |||
do | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[GetPlayerNetworkStats]] | * [[GetPlayerNetworkStats]] | ||
* [[GetNetworkStats]] | * [[GetNetworkStats]] |
Revision as of 14:53, 26 June 2021
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