{"hash":"0x80A9E7A7","ns":"CFX","name":"TASK_GO_STRAIGHT_TO_COORD","slug":"TASK_GO_STRAIGHT_TO_COORD","official":true,"named":true,"luaName":"TaskGoStraightToCoord","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"ped","type":"Ped","description":"The ped handle."},{"name":"x","type":"float","description":"The x coordinate."},{"name":"y","type":"float","description":"The y coordinate."},{"name":"z","type":"float","description":"The z coordinate."},{"name":"speed","type":"float","description":"The ped movement speed."},{"name":"timeout","type":"int","description":"\\-1 , other values appear to break the ped movement."},{"name":"targetHeading","type":"float","description":"The heading you want the ped to be on x,y,z coord."},{"name":"distanceToSlide","type":"float","description":"The distance from x,y,z where the ped will start sliding."}],"summary":"TASK_GO_STRAIGHT_TO_COORD This is the server-side RPC native equivalent of the client native TASK_GO_STRAIGHT_TO_COORD.","descriptions":[{"source":"cfx","format":"md","body":"TASK_GO_STRAIGHT_TO_COORD\n\n**This is the server-side RPC native equivalent of the client native [TASK_GO_STRAIGHT_TO_COORD](?\\_0xD76B57B44F1E6F8B).**"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/TASK_GO_STRAIGHT_TO_COORD","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/TASK_GO_STRAIGHT_TO_COORD.md","snippets":{"lua":"TaskGoStraightToCoord(ped, x, y, z, speed, timeout, targetHeading, distanceToSlide)","luaInvoke":"Citizen.InvokeNative(0x80a9e7a7, ped, x, y, z, speed, timeout, targetHeading, distanceToSlide)","js":"TaskGoStraightToCoord(ped, x, y, z, speed, timeout, targetHeading, distanceToSlide);","jsInvoke":"Citizen.invokeNative('0x80a9e7a7', ped, x + 0.0000001, y + 0.0000001, z + 0.0000001, speed + 0.0000001, timeout, targetHeading + 0.0000001, distanceToSlide + 0.0000001);","csharp":"Function.Call((Hash)0x80a9e7a7, ped, x, y, z, speed, timeout, targetHeading, distanceToSlide);","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."]}}