fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Server / get

Function: get()

get<T>(url, headers): Promise<T>

Makes a GET request.

Type Parameters

T

Parameters

url: string

The URL to which the request is sent.

headers: RequestHeaders = {}

Optional headers to include in the request.

Returns

Promise<T>

A promise that resolves to the response data of type T.

Defined in

server/web/requests.ts:10