_UGC_QUERY_BY_CATEGORY
Returns ugcRequestId
Hash
0x8C109958C9BB559DRuntime name
UgcQueryByCategoryNamespaceNETWORK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _UGC_QUERY_BY_CATEGORY(int categoryType, int p1, int maxGet, const char* contentTypeName, int p4, BOOL p5);Parameters
| Name | Type | Description |
|---|---|---|
categoryType | int | — |
p1 | int | — |
maxGet | int | — |
contentTypeName | const char* | — |
p4 | int | — |
p5 | BOOL | — |
Returns int
Description
Returns ugcRequestId
Usage
local retval = UgcQueryByCategory(categoryType, p1, maxGet, contentTypeName, p4, p5)
-- always works, by hash
local retval = Citizen.InvokeNative(0x8C109958C9BB559D, categoryType, p1, maxGet, contentTypeName, p4, p5, Citizen.ResultAsInteger())JavaScript and C#
const retval = UgcQueryByCategory(categoryType, p1, maxGet, contentTypeName, p4, p5);
// by hash
const retval = Citizen.invokeNative('0x8C109958C9BB559D', categoryType, p1, maxGet, contentTypeName, p4, p5, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x8C109958C9BB559D, categoryType, p1, maxGet, contentTypeName, p4, p5);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.