The Lab
NETWORK native

TEXTURE_DOWNLOAD_REQUEST

returns int4 paramsbuild 1207

Requests a texture download from the given path and returns a download id.

Signature

C
int TEXTURE_DOWNLOAD_REQUEST(Any* gamerHandle, const char* filePath, const char* name, BOOL p3); // 0x16160DA74A8E74A2 b1207

Parameters

#NameType
1gamerHandleAny* (out pointer)
2filePathconst char*
3nameconst char*
4p3BOOL

Facts

Facts about TEXTURE_DOWNLOAD_REQUEST
Name
TEXTURE_DOWNLOAD_REQUEST
Hash
0x16160DA74A8E74A2
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, gamerHandle = Citizen.InvokeNative(0x16160DA74A8E74A2, -- TEXTURE_DOWNLOAD_REQUEST
  Citizen.PointerValueInt(), -- Any* gamerHandle
  "text", -- const char* filePath
  "text", -- const char* name
  false, -- BOOL p3
  Citizen.ResultAsInteger()
)
print(result, gamerHandle)
JavaScript
const [result, gamerHandle] = Citizen.invokeNative("0x16160DA74A8E74A2", // TEXTURE_DOWNLOAD_REQUEST
  Citizen.pointerValueInt(), // Any* gamerHandle
  "text", // const char* filePath
  "text", // const char* name
  false, // BOOL p3
  Citizen.resultAsInteger()
);
console.log(result, gamerHandle)
C#
var gamerHandleArg = new OutputArgument();
int result = Function.Call<int>((Hash)0x16160DA74A8E74A2, // TEXTURE_DOWNLOAD_REQUEST
  gamerHandleArg, // Any* gamerHandle
  "text", // const char* filePath
  "text", // const char* name
  false // BOOL p3
);
int gamerHandle = gamerHandleArg.GetResult<int>();
All NETWORK natives

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