{"hash":"0x86BB5FF45F193A02","ns":"PED","name":"_ADD_TEXTURE_LAYER","slug":"_ADD_TEXTURE_LAYER","official":false,"named":true,"luaName":"AddTextureLayer","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"textureId","type":"int"},{"name":"albedoHash","type":"Hash"},{"name":"normalHash","type":"Hash"},{"name":"materialHash","type":"Hash"},{"name":"blendType","type":"int"},{"name":"texAlpha","type":"float"},{"name":"sheetGridIndex","type":"int"}],"summary":"Creates ped overlay in texture override data and returns it's index.","descriptions":[{"source":"alloc8or","format":"text","body":"Creates ped overlay in texture override data and returns it's index.\nThis index are used for further overlay editing.\n\nalbedoHash: a hash of overlay's albedo texture\ncolorType: a color type(from 0 to 2). 0 is used for overlays with RGB colors usually."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_ADD_TEXTURE_LAYER","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_ADD_TEXTURE_LAYER.md","snippets":{"lua":"local retval = AddTextureLayer(textureId, albedoHash, normalHash, materialHash, blendType, texAlpha, sheetGridIndex)","luaInvoke":"local retval = Citizen.InvokeNative(0x86BB5FF45F193A02, textureId, albedoHash, normalHash, materialHash, blendType, texAlpha, sheetGridIndex, Citizen.ResultAsInteger())","js":"const retval = AddTextureLayer(textureId, albedoHash, normalHash, materialHash, blendType, texAlpha, sheetGridIndex);","jsInvoke":"const retval = Citizen.invokeNative('0x86BB5FF45F193A02', textureId, albedoHash, normalHash, materialHash, blendType, texAlpha + 0.0000001, sheetGridIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x86BB5FF45F193A02, textureId, albedoHash, normalHash, materialHash, blendType, texAlpha, sheetGridIndex);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}