{"hash":"0x5653AB26C82938CF","ns":"PED","name":"_SET_CHAR_EXPRESSION","slug":"_SET_CHAR_EXPRESSION","official":false,"named":true,"luaName":"SetCharExpression","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"index","type":"int"},{"name":"value","type":"float"}],"summary":"Sets MetaPedExpression at index specified.","descriptions":[{"source":"alloc8or","format":"text","body":"Sets MetaPedExpression at index specified. Morphs components, such as changing body size or facial features.\n\nNote: You have to update the ped's variation (using 0xCC8CA3E88256E58F) after calling this native\n\nindex = MetaPedExpression IDs\nList of face features: https://pastebin.com/9jb88FXW\nFull list of MetaPedExpressions: https://pastebin.com/Ld76cAn7\nvalue: -1.0 to 1.0 (values beyond this likely won't sync to other clients)\n\nThis native also allows you to change a horse's gender.\n\nOld name: _SET_PED_FACE_FEATURE"},{"source":"femga","format":"pre","body":"// 0x5653AB26C82938CF     By Disquse , Pichotm, Sicario\nvoid _SET_PED_FACE_FEATURE(Ped ped, int index, float value);\n/*\n  Note: you have to reset ped's customization after calling, for example use \"0xCC8CA3E88256E58F\"\n  Safe values are from -1.0 to 1.0.\n  This native is also allowing you to change horse's gender.\n*/\n\nKnown indexes:\nhttps://pastebin.com/9jb88FXW\n\nUsage example:\n  const ped = PlayerPedId();\n  const faceFeatures = [ /* indexes */ ];\n\n  for (const index of faceFeatures) {\n    // Here comes your value\n    const value = (Math.random() * 4) - 2;\n\n    // Calling _SET_PED_FACE_FEATURE\n    Citizen.invokeNative(\"0x5653AB26C82938CF\", ped, index, value);\n  }\n\n  // Reseting ped's customization.\n  Citizen.invokeNative(\"0xCC8CA3E88256E58F\", ped, false, true, true, true, false);\n\nhttps://gfycat.com/redfinedartfrog"}],"examples":[],"aliases":[],"enums":[],"related":["0xFD1BA1EEF7985BB8"],"build":"1207","sources":["alloc8or","femga"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_SET_CHAR_EXPRESSION","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_SET_CHAR_EXPRESSION.md","snippets":{"lua":"SetCharExpression(ped, index, value)","luaInvoke":"Citizen.InvokeNative(0x5653AB26C82938CF, ped, index, value)","js":"SetCharExpression(ped, index, value);","jsInvoke":"Citizen.invokeNative('0x5653AB26C82938CF', ped, index, value + 0.0000001);","csharp":"Function.Call((Hash)0x5653AB26C82938CF, ped, index, value);","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.","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."]}}