OnPlayerDownloadFile: Difference between revisions
From Onset Developer Wiki
mNo edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|player| | {{FuncParam|player|The player identifier}} | ||
{{FuncParam|FileName| | {{FuncParam|FileName|The name of the file they just downloaded.}} | ||
{{FuncParam|Checksum| | {{FuncParam|Checksum|The checksum hash of the file}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang='Lua'> | |||
AddEvent("OnPlayerDownloadFile", function (player, fileName, checksum) | |||
print("filename: "..fileName.." checksum: "..checksum..".") | |||
end) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{PlayerServerEvents}} | {{PlayerServerEvents}} |
Latest revision as of 17:58, 16 January 2020
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)