- Documentation
- Client events
- onClientFileDownloadComplete
Event
onClientFileDownloadComplete
A download from downloadFile finished (a <file download="false"> file). It always arrives asynchronously, also when the file was already downloaded.
Handler
addEventHandler("onClientFileDownloadComplete", root, function(fileName, success, requestResource) ... end)Parameters
fileNamestring- The file.
successbooltrueon success.requestResourceresource- The resource that asked.
Source
source is the root of the file's resource.
Example
addEventHandler("onClientFileDownloadComplete", resourceRoot, function(name, ok)
if ok then outputChatBox("Pobrano " .. name) end
end)