a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Server / get
get<
T>(url,headers):Promise<T>
Makes a GET request.
• T
• url: string
The URL to which the request is sent.
• headers: RequestHeaders = {}
Optional headers to include in the request.
Promise<T>
A promise that resolves to the response data of type T.