The Lab
PED native

_SET_TEXTURE_LAYER_ROUGHNESS

returns void3 paramsbuild 1207

Sets the roughness of the layer layerId in textureId.

Signature

C
void _SET_TEXTURE_LAYER_ROUGHNESS(int textureId, int layerId, float texRough); // 0x057C4F092E2298BE b1207

Parameters

#NameType
1textureIdint
2layerIdint
3texRoughfloat

Facts

Facts about _SET_TEXTURE_LAYER_ROUGHNESS
Name
_SET_TEXTURE_LAYER_ROUGHNESS
Hash
0x057C4F092E2298BE
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(0x057C4F092E2298BE, -- _SET_TEXTURE_LAYER_ROUGHNESS
  0, -- int textureId
  0, -- int layerId
  0.0 -- float texRough
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x057C4F092E2298BE", // _SET_TEXTURE_LAYER_ROUGHNESS
  0, // int textureId
  0, // int layerId
  0.0 // float texRough
);
C#
Function.Call((Hash)0x057C4F092E2298BE, // _SET_TEXTURE_LAYER_ROUGHNESS
  0, // int textureId
  0, // int layerId
  0.0f // float texRough
);
All PED natives

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