{"hash":"0xC412AA1C73111FE0","ns":"PED","name":"_SET_PELT_FOR_HORSE_BY_INVENTORY_ITEM","slug":"_SET_PELT_FOR_HORSE_BY_INVENTORY_ITEM","official":false,"named":true,"luaName":"SetPeltForHorseByInventoryItem","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"horse","type":"Ped"},{"name":"inventoryItem","type":"Hash"},{"name":"albedoHash","type":"Hash"},{"name":"normalHash","type":"Hash"},{"name":"p4","type":"BOOL"}],"summary":"Adds a pelt to a horse from an inventoryItem hash and albedoHash, optionally normalHash textures.","descriptions":[{"source":"alloc8or","format":"text","body":"Adds a pelt to a horse from an inventoryItem hash and albedoHash, optionally normalHash textures."},{"source":"vorp","format":"text","body":"Set the pelt of the animal to the back of the horse\nEXAMPLE:\nlocal mount = GetMountOwnedByPlayer(PlayerId())\nCitizen.InvokeNative(0xC412AA1C73111FE0,mount,GetHashKey('PROVISION_DEER_HIDE_POOR'),GetHashKey('a_c_deer_01_uppr_000_c0_001_ab'),0,0)"},{"source":"femga","format":"pre","body":"0xC412AA1C73111FE0(by Ultimation)\nAdds a pelt to a horse from an itemHash and the albedo, (optional) normal textures.\n\nlocal mount = GetMountOwnedByPlayer(PlayerId())\nlocal itemhash = GetHashKey('PROVISION_DEER_HIDE_POOR')\nlocal albedo = GetHashKey('a_c_deer_01_uppr_000_c0_001_ab')\nlocal normal = 0\nlocal param5 = 0 -- always appears to be 0\n\nCitizen.InvokeNative(0xC412AA1C73111FE0,mount,itemHash,albedo,normal,0,param5)"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp","femga"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_SET_PELT_FOR_HORSE_BY_INVENTORY_ITEM","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_SET_PELT_FOR_HORSE_BY_INVENTORY_ITEM.md","snippets":{"lua":"SetPeltForHorseByInventoryItem(horse, inventoryItem, albedoHash, normalHash, p4)","luaInvoke":"Citizen.InvokeNative(0xC412AA1C73111FE0, horse, inventoryItem, albedoHash, normalHash, p4)","js":"SetPeltForHorseByInventoryItem(horse, inventoryItem, albedoHash, normalHash, p4);","jsInvoke":"Citizen.invokeNative('0xC412AA1C73111FE0', horse, inventoryItem, albedoHash, normalHash, p4);","csharp":"Function.Call((Hash)0xC412AA1C73111FE0, horse, inventoryItem, albedoHash, normalHash, p4);","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."]}}