NetworkClientBlocked

ugcPublish

UGC_PUBLISH0x1DE0F5F50D723CAA

The GTA V native UGC_PUBLISH of the NETWORK namespace, as LS:MP client scripts call it: the global function ugcPublish, in JavaScript and in Lua.

SignatureJavaScript
ugcPublish(
  contentId: string,
  baseContentId: string,
  contentTypeName: string
): boolean
SignatureLua
ugcPublish(
  contentId: string,
  baseContentId: string,
  contentTypeName: string
): boolean
✕
Blocked for scripts: Rockstar online sessions and content

LS:MP runs its own networking: scripts do not join, host or transition Rockstar sessions, or fetch Rockstar's user content and remote files.

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
Network NETWORK
In the game
BOOL UGC_PUBLISH(const char* contentId, const char* baseContentId, const char* contentTypeName)
Hash
0x1DE0F5F50D723CAA

Open in the interactive natives reference