RedM Natives

_UGC_QUERY_BY_CONTENT_TYPE

Returns ugcRequestId

Hash0xF40EF49B3099E98E
Runtime nameUgcQueryByContentType
NamespaceNETWORK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _UGC_QUERY_BY_CONTENT_TYPE(int p0, int maxGet, const char* contentTypeName, int p3, int p4, int p5);

Parameters

NameTypeDescription
p0int—
maxGetint—
contentTypeNameconst char*—
p3int—
p4int—
p5int—

Returns int

Description

Returns ugcRequestId

Usage

Lua
local retval = UgcQueryByContentType(p0, maxGet, contentTypeName, p3, p4, p5)

-- always works, by hash
local retval = Citizen.InvokeNative(0xF40EF49B3099E98E, p0, maxGet, contentTypeName, p3, p4, p5, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = UgcQueryByContentType(p0, maxGet, contentTypeName, p3, p4, p5);

// by hash
const retval = Citizen.invokeNative('0xF40EF49B3099E98E', p0, maxGet, contentTypeName, p3, p4, p5, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xF40EF49B3099E98E, p0, maxGet, contentTypeName, p3, 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.