ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientFileDownloadComplete

Event

onClientFileDownloadComplete

ClientResourcesIdentical to MTA:SA

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.
successbool
true on 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)

See also