{"hash":"0x70559AC7","ns":"CFX","name":"ADD_PED_DECORATION_FROM_HASHES","slug":"ADD_PED_DECORATION_FROM_HASHES","official":true,"named":true,"luaName":"AddPedDecorationFromHashes","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"collection","type":"Hash"},{"name":"overlay","type":"Hash"}],"summary":"Applies an Item from a PedDecorationCollection to a ped.","descriptions":[{"source":"cfx","format":"md","body":"```\nApplies an Item from a PedDecorationCollection to a ped. These include tattoos and shirt decals.\ncollection - PedDecorationCollection filename hash\noverlay - Item name hash\nExample:\nEntry inside \"mpbeach_overlays.xml\" -\n<Item>\n<uvPos x=\"0.500000\" y=\"0.500000\" />\n<scale x=\"0.600000\" y=\"0.500000\" />\n<rotation value=\"0.000000\" />\n<nameHash>FM_Hair_Fuzz</nameHash>\n<txdHash>mp_hair_fuzz</txdHash>\n<txtHash>mp_hair_fuzz</txtHash>\n<zone>ZONE_HEAD</zone>\n<type>TYPE_TATTOO</type>\n<faction>FM</faction>\n<garment>All</garment>\n<gender>GENDER_DONTCARE</gender>\n<award />\n<awardLevel />\n</Item>\nCode:\nPED::_0x5F5D1665E352A839(PLAYER::PLAYER_PED_ID(), MISC::GET_HASH_KEY(\"mpbeach_overlays\"), MISC::GET_HASH_KEY(\"fm_hair_fuzz\"))\n```\n\n**This is the server-side RPC native equivalent of the client native [ADD_PED_DECORATION_FROM_HASHES](?\\_0x5F5D1665E352A839).**"}],"examples":[],"aliases":["_APPLY_PED_OVERLAY","_SET_PED_DECORATION"],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/ADD_PED_DECORATION_FROM_HASHES","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/ADD_PED_DECORATION_FROM_HASHES.md","snippets":{"lua":"AddPedDecorationFromHashes(ped, collection, overlay)","luaInvoke":"Citizen.InvokeNative(0x70559ac7, ped, collection, overlay)","js":"AddPedDecorationFromHashes(ped, collection, overlay);","jsInvoke":"Citizen.invokeNative('0x70559ac7', ped, collection, overlay);","csharp":"Function.Call((Hash)0x70559ac7, ped, collection, overlay);","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` ``."]}}