{"hash":"0x0FE797DD9F70DFA6","ns":"TASK","name":"_SET_INTIMIDATED_FACING_ANGLE","slug":"_SET_INTIMIDATED_FACING_ANGLE","official":false,"named":true,"luaName":"SetIntimidatedFacingAngle","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"useLimits","type":"BOOL"},{"name":"minAngle","type":"float"},{"name":"maxAngle","type":"float"}],"summary":"Controls intimidated/hogtied ped facing.","descriptions":[{"source":"alloc8or","format":"text","body":"Controls intimidated/hogtied ped facing.\nIf useLimits=false, always face the player; if =true, clamp facing within [minAngle, maxAngle] degrees.\nAngle note: the range defines the allowed yaw cone around the intimidator e.g., [0,90] permits a quarter-turn, [-30,30] a tight ±30°, and wider ranges allow more swivel."},{"source":"vorp","format":"text","body":"Configures how an intimidated/hogtied ped faces the player If useLimits is false (0), the ped always fully faces the player.If useLimits is true (1), the ped’s facing is restricted within the given angle range [minAngle, maxAngle]"}],"examples":[{"lang":"lua","code":"--Set ped interaction personality to scripted timid robbery\nCitizen.InvokeNative(0x24C82EF607105FAA, ped, joaat(\"SCRIPTEDTIMIDROB\"))\n-- Start intimidated task with the player\nCitizen.InvokeNative(0x933ACC1A1771A288, ped, PlayerPedId(), 1, 0, 0, 0, 0, 0, 83968)\n-- Make the ped face within the range 0.0 to -360.0 degrees\nCitizen.InvokeNative(0x0FE797DD9F70DFA6, ped, 1, 0.0, -360.0)\n-- Force the ped to always face the player\nCitizen.InvokeNative(0x0FE797DD9F70DFA6, ped, 0)","source":"vorp"}],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":3,"url":"https://natives.borderlinerp.com/natives/TASK/_SET_INTIMIDATED_FACING_ANGLE","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_SET_INTIMIDATED_FACING_ANGLE.md","snippets":{"lua":"SetIntimidatedFacingAngle(ped, useLimits, minAngle, maxAngle)","luaInvoke":"Citizen.InvokeNative(0x0FE797DD9F70DFA6, ped, useLimits, minAngle, maxAngle)","js":"SetIntimidatedFacingAngle(ped, useLimits, minAngle, maxAngle);","jsInvoke":"Citizen.invokeNative('0x0FE797DD9F70DFA6', ped, useLimits, minAngle + 0.0000001, maxAngle + 0.0000001);","csharp":"Function.Call((Hash)0x0FE797DD9F70DFA6, ped, useLimits, minAngle, maxAngle);","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."]}}