cancelLatentEvent
Client
Stops a latent event this client is sending to the server. The server drops what it had received and the event is not triggered.
Also exists on the server, with its own implementation: cancelLatentEvent
bool cancelLatentEvent(int handle)
Parameters
| Name | Type | Description |
|---|---|---|
| handle | int | A handle from getLatentEventHandles. |
Returns
true if it was cancelled, false if the handle does not exist or the transfer already finished.
Example
addCommandHandler("cancelupload", function()
for _, handle in ipairs(getLatentEventHandles()) do
cancelLatentEvent(handle)
end
end)