RedM Natives

UGC_TEXTURE_DOWNLOAD_REQUEST

Hash0x308F96458B7087CC
Runtime nameUgcTextureDownloadRequest
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x308F96458B7087CC

Signature

int UGC_TEXTURE_DOWNLOAD_REQUEST(Any* p0, Any p1, Any p2, Any p3, Any* p4, BOOL p5);

Parameters

NameTypeDescription
p0Any*—
p1Any—
p2Any—
p3Any—
p4Any*—
p5BOOL—

Returns int

Usage

Lua
local retval, p0, p4 = UgcTextureDownloadRequest(p1, p2, p3, p5)

-- always works, by hash
local retval, p0, p4 = Citizen.InvokeNative(0x308F96458B7087CC, Citizen.PointerValueInt(), p1, p2, p3, Citizen.PointerValueInt(), p5, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, p0, p4] = UgcTextureDownloadRequest(p1, p2, p3, p5);

// by hash
const [retval, p0, p4] = Citizen.invokeNative('0x308F96458B7087CC', Citizen.pointerValueInt(), p1, p2, p3, Citizen.pointerValueInt(), p5, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var p0 = new OutputArgument();
var p4 = new OutputArgument();
int retval = Function.Call<int>((Hash)0x308F96458B7087CC, p0, p1, p2, p3, p4, p5);
// p0.GetResult<int>()
// p4.GetResult<int>()
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.