The Lab
PED native

_REQUEST_TEXTURE

returns int3 paramsbuild 1207

Creates a custom ped texture from the given albedo, normal and material hashes and returns its texture id.

Signature

C
int _REQUEST_TEXTURE(Hash albedoHash, Hash normalHash, Hash materialHash); // 0xC5E7204F322E49EB b1207

Parameters

#NameType
1albedoHashHash
2normalHashHash
3materialHashHash

Facts

Facts about _REQUEST_TEXTURE
Name
_REQUEST_TEXTURE
Hash
0xC5E7204F322E49EB
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 = Citizen.InvokeNative(0xC5E7204F322E49EB, -- _REQUEST_TEXTURE
  GetHashKey("name"), -- Hash albedoHash
  GetHashKey("name"), -- Hash normalHash
  GetHashKey("name"), -- Hash materialHash
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xC5E7204F322E49EB", // _REQUEST_TEXTURE
  GetHashKey("name"), // Hash albedoHash
  GetHashKey("name"), // Hash normalHash
  GetHashKey("name"), // Hash materialHash
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xC5E7204F322E49EB, // _REQUEST_TEXTURE
  (uint)API.GetHashKey("name"), // Hash albedoHash
  (uint)API.GetHashKey("name"), // Hash normalHash
  (uint)API.GetHashKey("name") // Hash materialHash
);
All PED natives

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