ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getNetworkUsageData

Function

getNetworkUsageData

ServerUtilitiesIdentical to MTA:SA

Returns how much data the server has received and sent over the network since it started.

Syntax

table getNetworkUsageData()

Returns

{ in_ = {bytes, packets}, out = {bytes, packets} }, or false.

Example

local usage = getNetworkUsageData()
if usage then outputServerLog(("Wyslano %d KB"):format(usage.out.bytes / 1024)) end

See also