getLatentEventStatus
Client
Tells how a latent event this client is sending to the server is going.
Also exists on the server, with its own implementation: getLatentEventStatus
table|false getLatentEventStatus(int handle)
Parameters
| Name | Type | Description |
|---|---|---|
| handle | int | A handle from getLatentEventHandles. |
Returns
A table with tickStart and tickEnd (on the getTickCount scale; tickEnd is an estimate while sending and the real end afterwards), totalSize (bytes) and percentComplete (0 to 100). false if the handle does not exist or the transfer finished more than a second ago.
Example
addEventHandler("onClientRender", root, function()
for _, handle in ipairs(getLatentEventHandles()) do
local status = getLatentEventStatus(handle)
if status then
dxDrawText("Uploading: " .. status.percentComplete .. "%", 20, 300)
end
end
end)