_REQUEST_TEXTURE
Creates a custom ped texture from the given albedo, normal and material hashes and returns its texture id.
Signature
int _REQUEST_TEXTURE(Hash albedoHash, Hash normalHash, Hash materialHash); // 0xC5E7204F322E49EB b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | albedoHash | Hash |
| 2 | normalHash | Hash |
| 3 | materialHash | Hash |
Facts
| 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.
local result = Citizen.InvokeNative(0xC5E7204F322E49EB, -- _REQUEST_TEXTURE
GetHashKey("name"), -- Hash albedoHash
GetHashKey("name"), -- Hash normalHash
GetHashKey("name"), -- Hash materialHash
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xC5E7204F322E49EB", // _REQUEST_TEXTURE
GetHashKey("name"), // Hash albedoHash
GetHashKey("name"), // Hash normalHash
GetHashKey("name"), // Hash materialHash
Citizen.resultAsInteger()
);
console.log(result)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
);Related PED natives
- _REQUEST_META_PED
- _REQUEST_META_PED_ASSET_BUNDLE
- _REQUEST_META_PED_COMPONENT
- _REQUEST_META_PED_OUTFIT
- _REQUEST_MOTION_TYPE_ASSET
- _REQUEST_PED_EMOTIONAL_PRESET
- _REQUEST_PED_FACIAL_MOOD_THIS_FRAME
- _REQUEST_PED_FOR_SCENARIO_TYPE
- _REQUEST_PED_GETUP_ANIMATION
- _REQUEST_PROP_SCENARIO_PED
- _SET_TEXTURE_LAYER_TEXTURE_MAP
- _RELEASE_META_PED_ASSET_REQUEST
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.