getNetworkStats | Multi Theft Auto: Wiki Skip to content

getNetworkStats

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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


This function returns network status information.

Syntax

getNetworkStats ( )

Code Examples

server

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)