{"hash":"0xD28DBA90","ns":"CFX","name":"SET_PED_HEAD_OVERLAY","slug":"SET_PED_HEAD_OVERLAY","official":true,"named":true,"luaName":"SetPedHeadOverlay","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"ped","type":"Ped","description":"The ped entity"},{"name":"overlayID","type":"int","description":"The overlay id displayed up above."},{"name":"index","type":"int","description":"An integer representing the index (from 0 to `_GET_NUM_OVERLAY_VALUES(overlayID)-1`)"},{"name":"opacity","type":"float","description":"A float ranging from 0.0 to 1.0"}],"summary":"OverlayID ranges from 0 to 12, index from 0 to _GET_NUM_OVERLAY_VALUES(overlayID)-1, and opacity from 0.0 to 1.0.","descriptions":[{"source":"cfx","format":"md","body":"```\nOverlayID ranges from 0 to 12, index from 0 to _GET_NUM_OVERLAY_VALUES(overlayID)-1, and opacity from 0.0 to 1.0.\noverlayID       Part                  Index, to disable\n0               Blemishes             0 - 23, 255\n1               Facial Hair           0 - 28, 255\n2               Eyebrows              0 - 33, 255\n3               Ageing                0 - 14, 255\n4               Makeup                0 - 74, 255\n5               Blush                 0 - 6, 255\n6               Complexion            0 - 11, 255\n7               Sun Damage            0 - 10, 255\n8               Lipstick              0 - 9, 255\n9               Moles/Freckles        0 - 17, 255\n10              Chest Hair            0 - 16, 255\n11              Body Blemishes        0 - 11, 255\n12              Add Body Blemishes    0 - 1, 255\n```\n\n**Note:**\nYou may need to call [`SetPedHeadBlendData`](#\\_0x9414E18B9434C2FE) prior to calling this native in order for it to work.\n\n**This is the server-side RPC native equivalent of the client native [SET_PED_HEAD_OVERLAY](?\\_0x48F44967FA05CC1E).**"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/SET_PED_HEAD_OVERLAY","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/SET_PED_HEAD_OVERLAY.md","snippets":{"lua":"SetPedHeadOverlay(ped, overlayID, index, opacity)","luaInvoke":"Citizen.InvokeNative(0xd28dba90, ped, overlayID, index, opacity)","js":"SetPedHeadOverlay(ped, overlayID, index, opacity);","jsInvoke":"Citizen.invokeNative('0xd28dba90', ped, overlayID, index, opacity + 0.0000001);","csharp":"Function.Call((Hash)0xd28dba90, ped, overlayID, index, opacity);","notes":["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."]}}