UGC_REQUEST_CONTENT_DATA_FROM_PARAMS
Requests the data of a user content item from its type, id, file and language, and returns a request id.
Signature
int UGC_REQUEST_CONTENT_DATA_FROM_PARAMS(const char* contentTypeName, const char* contentId, int fileId, int fileVersion, int languageId); // 0x7FD2990AF016795E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | contentTypeName | const char* |
| 2 | contentId | const char* |
| 3 | fileId | int |
| 4 | fileVersion | int |
| 5 | languageId | int |
Facts
| Name | UGC_REQUEST_CONTENT_DATA_FROM_PARAMS |
|---|---|
| Hash | 0x7FD2990AF016795E |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x7FD2990AF016795E, -- UGC_REQUEST_CONTENT_DATA_FROM_PARAMS
"text", -- const char* contentTypeName
"text", -- const char* contentId
0, -- int fileId
0, -- int fileVersion
0, -- int languageId
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x7FD2990AF016795E", // UGC_REQUEST_CONTENT_DATA_FROM_PARAMS
"text", // const char* contentTypeName
"text", // const char* contentId
0, // int fileId
0, // int fileVersion
0, // int languageId
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x7FD2990AF016795E, // UGC_REQUEST_CONTENT_DATA_FROM_PARAMS
"text", // const char* contentTypeName
"text", // const char* contentId
0, // int fileId
0, // int fileVersion
0 // int languageId
);Related NETWORK natives
- UGC_REQUEST_CACHED_DESCRIPTION
- UGC_SET_QUERY_DATA_FROM_OFFLINE
- UGC_DID_DESCRIPTION_REQUEST_SUCCEED
- UGC_DID_REQUEST_SUCCEED
- UGC_HAS_DESCRIPTION_REQUEST_FINISHED
- UGC_HAS_REQUEST_FINISHED
- UGC_IS_DESCRIPTION_REQUEST_IN_PROGRESS
- UGC_IS_REQUEST_PENDING
- UGC_QUERY_GET_CONTENT_HAS_PLAYER_RECORD
- UGC_QUERY_GET_CONTENT_NUM
- UGC_TEXTURE_DOWNLOAD_REQUEST
- _UGC_QUERY_BY_CONTENT_ID
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.