{"hash":"0x93B93A37987F1F3D","ns":"TASK","name":"TASK_ACHIEVE_HEADING","slug":"TASK_ACHIEVE_HEADING","official":true,"named":true,"luaName":"TaskAchieveHeading","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"heading","type":"float"},{"name":"timeout","type":"int"}],"summary":"Makes the specified ped achieve the specified heading.","descriptions":[{"source":"alloc8or","format":"text","body":"Makes the specified ped achieve the specified heading.\n\npedHandle: The handle of the ped to assign the task to.\nheading: The desired heading.\ntimeout: The time, in milliseconds, to allow the task to complete. If the task times out, it is canceled, and the ped will stay at the heading it managed to reach in the time."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x93B93A37987F1F3D","gtaJhash":"0x0A0E9B42","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/TASK_ACHIEVE_HEADING","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/TASK_ACHIEVE_HEADING.md","snippets":{"lua":"TaskAchieveHeading(ped, heading, timeout)","luaInvoke":"Citizen.InvokeNative(0x93B93A37987F1F3D, ped, heading, timeout)","js":"TaskAchieveHeading(ped, heading, timeout);","jsInvoke":"Citizen.invokeNative('0x93B93A37987F1F3D', ped, heading + 0.0000001, timeout);","csharp":"Function.Call((Hash)0x93B93A37987F1F3D, ped, heading, timeout);","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."]}}