{"hash":"0x160921255327C591","ns":"GRAPHICS","name":"_GENERATE_SWATCH_TEXTURE","slug":"_GENERATE_SWATCH_TEXTURE","official":false,"named":true,"luaName":"GenerateSwatchTexture","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"slotId","type":"int"},{"name":"componentHash","type":"Hash"},{"name":"metapedType","type":"int"},{"name":"p3","type":"BOOL"}],"summary":"local hash = GetHashKey(\"CLOTHING_ITEM_M_EYES_001_TINT_001\") _GENERATE_SWATCH_TEXTURE(0, hash, 0, true)","descriptions":[{"source":"alloc8or","format":"text","body":"Example:\nlocal hash = GetHashKey(\"CLOTHING_ITEM_M_EYES_001_TINT_001\")\n_GENERATE_SWATCH_TEXTURE(0, hash, 0, true)\nmetapedType: see 0xEC9A1261BF0CE510"}],"examples":[],"aliases":[],"enums":["eMetaPedType"],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/GRAPHICS/_GENERATE_SWATCH_TEXTURE","markdownUrl":"https://natives.borderlinerp.com/natives/GRAPHICS/_GENERATE_SWATCH_TEXTURE.md","snippets":{"lua":"GenerateSwatchTexture(slotId, componentHash, metapedType, p3)","luaInvoke":"Citizen.InvokeNative(0x160921255327C591, slotId, componentHash, metapedType, p3)","js":"GenerateSwatchTexture(slotId, componentHash, metapedType, p3);","jsInvoke":"Citizen.invokeNative('0x160921255327C591', slotId, componentHash, metapedType, p3);","csharp":"Function.Call((Hash)0x160921255327C591, slotId, componentHash, metapedType, p3);","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` ``.","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."]}}