The Lab
PED native

_SET_TEXTURE_LAYER_MOD

returns void5 paramsbuild 1207

Applies the mod texture modTextureHash with modAlpha to the layer layerId of textureId.

Signature

C
void _SET_TEXTURE_LAYER_MOD(int textureId, int layerId, Hash modTextureHash, float modAlpha, int modChannel); // 0xF2EA041F1146D75B b1207

Parameters

#NameType
1textureIdint
2layerIdint
3modTextureHashHash
4modAlphafloat
5modChannelint

Facts

Facts about _SET_TEXTURE_LAYER_MOD
Name
_SET_TEXTURE_LAYER_MOD
Hash
0xF2EA041F1146D75B
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xF2EA041F1146D75B, -- _SET_TEXTURE_LAYER_MOD
  0, -- int textureId
  0, -- int layerId
  GetHashKey("name"), -- Hash modTextureHash
  0.0, -- float modAlpha
  0 -- int modChannel
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xF2EA041F1146D75B", // _SET_TEXTURE_LAYER_MOD
  0, // int textureId
  0, // int layerId
  GetHashKey("name"), // Hash modTextureHash
  0.0, // float modAlpha
  0 // int modChannel
);
C#
Function.Call((Hash)0xF2EA041F1146D75B, // _SET_TEXTURE_LAYER_MOD
  0, // int textureId
  0, // int layerId
  (uint)API.GetHashKey("name"), // Hash modTextureHash
  0.0f, // float modAlpha
  0 // int modChannel
);
All PED natives

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