RedM Natives

_UGC_QUERY_BY_CATEGORY

Returns ugcRequestId

Hash0x8C109958C9BB559D
Runtime nameUgcQueryByCategory
NamespaceNETWORK
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

NameTypeDescription
categoryTypeint—
p1int—
maxGetint—
contentTypeNameconst char*—
p4int—
p5BOOL—

Returns int

Description

Returns ugcRequestId

Usage

Lua
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#
JavaScript
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());
C#
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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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