ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. abortRemoteRequest

Function

abortRemoteRequest

ServerResourcesIdentical to MTA:SA

Aborts a running HTTP request. In the current server version it cannot be aborted yet: the function returns false with a warning, and the request ends by itself after the fetchRemote timeout.

Syntax

bool abortRemoteRequest(request theRequest)

Arguments

theRequestrequest
The request.

Returns

Currently false.

Example

for _, request in ipairs(getRemoteRequests()) do
    abortRemoteRequest(request)
end

See also