_UGC_QUERY_BY_CATEGORY
Starts a user-generated content query by category and returns a query id.
Signature
int _UGC_QUERY_BY_CATEGORY(int categoryType, int p1, int maxGet, const char* contentTypeName, int p4, BOOL p5); // 0x8C109958C9BB559D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | categoryType | int |
| 2 | p1 | int |
| 3 | maxGet | int |
| 4 | contentTypeName | const char* |
| 5 | p4 | int |
| 6 | p5 | BOOL |
Facts
| Name | _UGC_QUERY_BY_CATEGORY |
|---|---|
| Hash | 0x8C109958C9BB559D |
| 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(0x8C109958C9BB559D, -- _UGC_QUERY_BY_CATEGORY
0, -- int categoryType
0, -- int p1
0, -- int maxGet
"text", -- const char* contentTypeName
0, -- int p4
false, -- BOOL p5
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x8C109958C9BB559D", // _UGC_QUERY_BY_CATEGORY
0, // int categoryType
0, // int p1
0, // int maxGet
"text", // const char* contentTypeName
0, // int p4
false, // BOOL p5
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x8C109958C9BB559D, // _UGC_QUERY_BY_CATEGORY
0, // int categoryType
0, // int p1
0, // int maxGet
"text", // const char* contentTypeName
0, // int p4
false // BOOL p5
);Related NETWORK natives
- _UGC_QUERY_BY_CONTENT_ID
- _UGC_QUERY_BY_CONTENT_TYPE
- _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_OWNER_ID
- _UGC_QUERY_GET_PLAYLIST_NAME
- _UGC_QUERY_GET_POSIX_PUBLISHED_DATE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.