RedM Natives

GET_STATUS_OF_TEXTURE_DOWNLOAD

Hash0x8BD6C6DEA20E82C6
Runtime nameGetStatusOfTextureDownload
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x8BD6C6DEA20E82C6

Signature

int GET_STATUS_OF_TEXTURE_DOWNLOAD(int textureDownloadId);

Parameters

NameTypeDescription
textureDownloadIdint—

Returns int

Description

0 = succeeded
1 = pending
2 = failed

Usage

Lua
local retval = GetStatusOfTextureDownload(textureDownloadId)

-- always works, by hash
local retval = Citizen.InvokeNative(0x8BD6C6DEA20E82C6, textureDownloadId, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetStatusOfTextureDownload(textureDownloadId);

// by hash
const retval = Citizen.invokeNative('0x8BD6C6DEA20E82C6', textureDownloadId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x8BD6C6DEA20E82C6, textureDownloadId);

Sources

alloc8or RDR3 NativeDB

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