Data filesClientBlocked

ugcCreateContent

UGC_CREATE_CONTENT0xC84527E235FCA219

The GTA V native UGC_CREATE_CONTENT of the DATAFILE namespace, as LS:MP client scripts call it: the global function ugcCreateContent, in JavaScript and in Lua.

SignatureJavaScript
ugcCreateContent(
  data: null,
  dataCount: number,
  contentName: string,
  description: string,
  tagsCsv: string,
  contentTypeName: string,
  publish: boolean,
  p7: any
): boolean
SignatureLua
ugcCreateContent(
  data: nil,
  dataCount: integer,
  contentName: string,
  description: string,
  tagsCsv: string,
  contentTypeName: string,
  publish: boolean,
  p7: any
): boolean
✕
Blocked for scripts: Raw memory and structures

This native reads or fills a memory structure a script has no way to provide, so it is not callable. For entity lists, use lsmp.getGamePool. For JSON, use lsmp.json.

Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.

Reference

Namespace
Data files DATAFILE
In the game
BOOL UGC_CREATE_CONTENT(Any* data, int dataCount, const char* contentName, const char* description, const char* tagsCsv, const char* contentTypeName, BOOL publish, Any p7)
Hash
0xC84527E235FCA219

Open in the interactive natives reference