The Lab
NETWORK native

UGC_REQUEST_CONTENT_DATA_FROM_PARAMS

returns int5 paramsbuild 1207

Requests the data of a user content item from its type, id, file and language, and returns a request id.

Signature

C
int UGC_REQUEST_CONTENT_DATA_FROM_PARAMS(const char* contentTypeName, const char* contentId, int fileId, int fileVersion, int languageId); // 0x7FD2990AF016795E b1207

Parameters

#NameType
1contentTypeNameconst char*
2contentIdconst char*
3fileIdint
4fileVersionint
5languageIdint

Facts

Facts about UGC_REQUEST_CONTENT_DATA_FROM_PARAMS
Name
UGC_REQUEST_CONTENT_DATA_FROM_PARAMS
Hash
0x7FD2990AF016795E
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(0x7FD2990AF016795E, -- UGC_REQUEST_CONTENT_DATA_FROM_PARAMS
  "text", -- const char* contentTypeName
  "text", -- const char* contentId
  0, -- int fileId
  0, -- int fileVersion
  0, -- int languageId
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x7FD2990AF016795E", // UGC_REQUEST_CONTENT_DATA_FROM_PARAMS
  "text", // const char* contentTypeName
  "text", // const char* contentId
  0, // int fileId
  0, // int fileVersion
  0, // int languageId
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x7FD2990AF016795E, // UGC_REQUEST_CONTENT_DATA_FROM_PARAMS
  "text", // const char* contentTypeName
  "text", // const char* contentId
  0, // int fileId
  0, // int fileVersion
  0 // int languageId
);
All NETWORK natives

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