OnPlayerDownloadFile

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
OnPlayerDownloadFile

Type: Event
Context: Server
Introduced: v1.0

Description

Called when a client finished downloading a package file from the server.

Syntax

OnPlayerDownloadFile(player, FileName, Checksum)

Parameters

  • player
    The player identifier
  • FileName
    The name of the file they just downloaded.
  • Checksum
    The checksum hash of the file

Example

AddEvent("OnPlayerDownloadFile", function (player, fileName, checksum)
    print("filename: "..fileName.." checksum: "..checksum..".")
end)

See also