_UGC_QUERY_BY_CONTENT_ID
Starts a user-generated content query for contentId and returns a query id.
Signature
int _UGC_QUERY_BY_CONTENT_ID(const char* contentId, BOOL latestVersion, const char* contentTypeName); // 0x69D22E183580113F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | contentId | const char* |
| 2 | latestVersion | BOOL |
| 3 | contentTypeName | const char* |
Facts
| Name | _UGC_QUERY_BY_CONTENT_ID |
|---|---|
| Hash | 0x69D22E183580113F |
| 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(0x69D22E183580113F, -- _UGC_QUERY_BY_CONTENT_ID
"text", -- const char* contentId
false, -- BOOL latestVersion
"text", -- const char* contentTypeName
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x69D22E183580113F", // _UGC_QUERY_BY_CONTENT_ID
"text", // const char* contentId
false, // BOOL latestVersion
"text", // const char* contentTypeName
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x69D22E183580113F, // _UGC_QUERY_BY_CONTENT_ID
"text", // const char* contentId
false, // BOOL latestVersion
"text" // const char* contentTypeName
);Related NETWORK natives
- _UGC_QUERY_BY_CONTENT_TYPE
- _UGC_QUERY_GET_ROOT_CONTENT_ID
- _UGC_QUERY_BY_CATEGORY
- _UGC_QUERY_GET_OWNER_ID
- _UGC_QUERY_GET_BOOK_MARKED
- _UGC_QUERY_GET_CREATOR_HANDLE
- _UGC_QUERY_GET_CREATOR_PHOTO
- _UGC_QUERY_GET_DATE
- _UGC_QUERY_GET_LANGUAGE
- _UGC_QUERY_GET_MISSION_DESC_HASH
- _UGC_QUERY_GET_NAME
- _UGC_QUERY_GET_PLAYLIST_NAME
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.