Conversation
|
I don't see any need for your wrapper. |
|
This PR replaces 10 lines of code with a single-line wrapper. Like other ox_lib utilities, the goal is to eliminate redundant code across projects. Although it adds no new core functionality, the benefit is in the simplified developer experience and cleaner codebase. |
This PR adds 10 lines of code for a functionality that already exists as referenced in previous message. |
|
I missed the Await after PerformHttpRequest. I didn't see that native in the official docs, am I missing somewhere to look ? |
https://docs.fivem.net/docs/scripting-reference/runtimes/lua/functions/PerformHttpRequestAwait/ |
This pull request introduces a new
lib.httpRequestfunction to the library. This function provides a promise-based wrapper around FiveM'sPerformHttpRequestnative, allowing developers to perform HTTP requests with validation for common methods.