Knowledge from the fieldRedM

Texture-layer natives take Hash args (GetHashFromString); palette/tint only apply when blendType == 0

learning:71

Texture-layer natives take Hash args (GetHashFromString); palette/tint only apply when blendType == 0

Context

The texture-layer natives _ADD_TEXTURE_LAYER (0x86BB5FF45F193A02), _SET_TEXTURE_LAYER_PALLETE (0x1ED8588524AC9BE1), and _APPLY_TEXTURE_ON_PED (0x0B46E25761519058) take Hash arguments, and tinting is conditional on the layer's blend type.

Notes

  • Pass albedo/normal/material as hashes via GetHashFromString. jo_libs derives the normal/material names from the albedo by suffix: normal = albedo .. "_nm", material = albedo .. "_ab", then hashes all three.
  • Palette + tint (SetTextureLayerPallete / SetTextureLayerTint) only take effect when blendType == 0. Layers with blendType == 1 (scars, spots, ageing, moles, freckles) ignore palette/tint.
data.normal = data.albedo .. "_nm"
data.material = data.albedo .. "_ab"
if blendType == 0 and layer.palette then
  SetTextureLayerPallete(...) ; SetTextureLayerTint(...)
end

Verified

ped-texture/g_client.lua:385-414.

Linked natives

  • _ADD_TEXTURE_LAYER (0x86BB5FF45F193A02)
  • _APPLY_TEXTURE_ON_PED (0x0B46E25761519058)
  • _SET_TEXTURE_LAYER_PALLETE (0x1ED8588524AC9BE1)

Tags: ped, texture, layer, blendtype, palette, gethashfromstring
Category: natives
Source: jo_libs-fleet
Created: 2026-05-31T09:43:30.150Z

Back to documentation