The Lab
NETWORK native

_UGC_QUERY_BY_CONTENT_ID

returns int3 paramsbuild 1207

Starts a user-generated content query for contentId and returns a query id.

Signature

C
int _UGC_QUERY_BY_CONTENT_ID(const char* contentId, BOOL latestVersion, const char* contentTypeName); // 0x69D22E183580113F b1207

Parameters

#NameType
1contentIdconst char*
2latestVersionBOOL
3contentTypeNameconst char*

Facts

Facts about _UGC_QUERY_BY_CONTENT_ID
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.

Lua
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)
JavaScript
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)
C#
int result = Function.Call<int>((Hash)0x69D22E183580113F, // _UGC_QUERY_BY_CONTENT_ID
  "text", // const char* contentId
  false, // BOOL latestVersion
  "text" // const char* contentTypeName
);
All NETWORK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.