GetPlayerNetworkStats: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
for name, value in pairs(GetPlayerNetworkStats(player))
  print(name .. " -> " .. value)
do
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
* [[GetPlayerNetworkStats]]
* [[GetPlayerNetworkStats]]
* [[GetNetworkStats]]
* [[GetNetworkStats]]

Latest revision as of 14:53, 26 June 2021

GetPlayerNetworkStats

Type: Function
Context: Server
Introduced: v1.0

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

See also