PedClient

getTintIndexForLastGenHairTexture

GET_TINT_INDEX_FOR_LAST_GEN_HAIR_TEXTURE0xC56FBF2F228E1DAC

The GTA V native GET_TINT_INDEX_FOR_LAST_GEN_HAIR_TEXTURE of the PED namespace, as LS:MP client scripts call it: the global function getTintIndexForLastGenHairTexture, in JavaScript and in Lua.

SignatureJavaScript
getTintIndexForLastGenHairTexture(
  modelHash: Hash,
  drawableId: number,
  textureId: number
): number
SignatureLua
getTintIndexForLastGenHairTexture(
  modelHash: Hash,
  drawableId: integer,
  textureId: integer
): integer

Usage

JavaScript
const result = getTintIndexForLastGenHairTexture(modelHash, drawableId, textureId);
Lua
local result = getTintIndexForLastGenHairTexture(modelHash, drawableId, textureId)

Parameters

ParameterTypeJavaScriptLua
modelHashHashnumberinteger
drawableIdintnumberinteger
textureIdintnumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Ped PED
In the game
int GET_TINT_INDEX_FOR_LAST_GEN_HAIR_TEXTURE(Hash modelHash, int drawableId, int textureId)
Hash
0xC56FBF2F228E1DAC
Formerly
_GET_TINT_OF_HAIR_COMPONENT_VARIATION

Open in the interactive natives reference