{"hash":"0xC5E7204F322E49EB","ns":"PED","name":"_REQUEST_TEXTURE","slug":"_REQUEST_TEXTURE","official":false,"named":true,"luaName":"RequestTexture","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"albedoHash","type":"Hash"},{"name":"normalHash","type":"Hash"},{"name":"materialHash","type":"Hash"}],"summary":"Creates a texture override data for ped and returns it's index.","descriptions":[{"source":"alloc8or","format":"text","body":"Creates a texture override data for ped and returns it's index.\nSo you can replace any texture of any ped's component.\nAlso, you can add overlays on it, such as aging, lipstick and more.\nTextures can be reused by multiple peds at once.\nYou can keep only 32 textures at once(including other peds).\n\nhttps://github.com/femga/rdr3_discoveries/blob/master/clothes/change_overlays_script.lua\nmaterialHash: https://github.com/femga/rdr3_discoveries/blob/master/clothes/cloth_drawable_albedo_normal_material_TEMPORARY.lua"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_REQUEST_TEXTURE","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_REQUEST_TEXTURE.md","snippets":{"lua":"local retval = RequestTexture(albedoHash, normalHash, materialHash)","luaInvoke":"local retval = Citizen.InvokeNative(0xC5E7204F322E49EB, albedoHash, normalHash, materialHash, Citizen.ResultAsInteger())","js":"const retval = RequestTexture(albedoHash, normalHash, materialHash);","jsInvoke":"const retval = Citizen.invokeNative('0xC5E7204F322E49EB', albedoHash, normalHash, materialHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xC5E7204F322E49EB, albedoHash, normalHash, materialHash);","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."]}}