RedM Natives

UGC_REQUEST_CONTENT_DATA_FROM_PARAMS

Hash0x7FD2990AF016795E
Runtime nameUgcRequestContentDataFromParams
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x7FD2990AF016795E

Signature

int UGC_REQUEST_CONTENT_DATA_FROM_PARAMS(const char* contentTypeName, const char* contentId, int fileId, int fileVersion, int languageId);

Parameters

NameTypeDescription
contentTypeNameconst char*—
contentIdconst char*—
fileIdint—
fileVersionint—
languageIdint—

Returns int

Usage

Lua
local retval = UgcRequestContentDataFromParams(contentTypeName, contentId, fileId, fileVersion, languageId)

-- always works, by hash
local retval = Citizen.InvokeNative(0x7FD2990AF016795E, contentTypeName, contentId, fileId, fileVersion, languageId, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = UgcRequestContentDataFromParams(contentTypeName, contentId, fileId, fileVersion, languageId);

// by hash
const retval = Citizen.invokeNative('0x7FD2990AF016795E', contentTypeName, contentId, fileId, fileVersion, languageId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x7FD2990AF016795E, contentTypeName, contentId, fileId, fileVersion, languageId);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.