onClientTransferBoxProgressChange
Client-side
Server-side
Shared
This event is triggered every time the resource file downloader (aka. transfer box) updates the download progress.
Parameters
float downloadedSizeTotal, float downloadTotalBytes
- downloadedSizeTotal: The total progress in bytes.
- downloadTotalBytes: The total size of the download in bytes.
Source
element: The source of this event is the root element.
Code Examples
client
This example will show the percentage of the download progress, whenever a resource is started:
addEventHandler ("onClientTransferBoxProgressChange", root, function (downloadedSize, totalSize) local percentage = math.min ((downloadedSize / totalSize) * 100, 100)
print (percentage .. "%")end)
See Also
Other Events
- onClientChatMessage
- onClientConsole
- onClientCoreCommand
- onClientDebugMessage
- onClientExplosion
- onClientFileDownloadComplete
- onClientHUDRender
- onClientMTAFocusChange
- onClientMinimize
- onClientPedsProcessed
- onClientPlayerNetworkStatus
- onClientPreRender
- onClientRender
- onClientRestore
- onClientTransferBoxProgressChange
- onClientTransferBoxVisibilityChange
- onClientWorldSound