Skip to content

getNetworkStats

Client-side

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function returns network status information.

Syntax

table getNetworkStats ( )

Returns

Returns a table, the indexes in the table are the following:

  • table: value

Code Examples

client

This example outputs the local players network status information to their console when using the /netstatus command

function netStatus()
for index, value in pairs(getNetworkStats()) do
outputConsole(index..": "..value)
end
outputChatBox("Network status output to console", 0, 255, 0)
end
addCommandHandler("netstatus", netStatus)