{"hash":"0xD76B57B44F1E6F8B","ns":"TASK","name":"TASK_GO_STRAIGHT_TO_COORD","slug":"TASK_GO_STRAIGHT_TO_COORD","official":true,"named":true,"luaName":"TaskGoStraightToCoord","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"moveBlendSpeedY","type":"float"},{"name":"timeBeforeTeleport","type":"int"},{"name":"finalHeading","type":"float"},{"name":"targetRadius","type":"float"},{"name":"p8","type":"int"}],"summary":"Go to coords wihtout using navmesh, if timeBeforeTeleport is -1 then it never teleports p8 is 1 or 0 still unknown.","descriptions":[{"source":"alloc8or","format":"text","body":"Go to coords wihtout using navmesh, if timeBeforeTeleport is -1 then it never teleports p8 is 1 or 0 still unknown."},{"source":"vorp","format":"text","body":"Tells the ped to go to a coord, without using the navemesh. if timeBeforeTeleport is -1 the ped will never warp, p8 is always 0 or 1 still unknown"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xD76B57B44F1E6F8B","gtaJhash":"0x80A9E7A7","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/TASK_GO_STRAIGHT_TO_COORD","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/TASK_GO_STRAIGHT_TO_COORD.md","snippets":{"lua":"TaskGoStraightToCoord(ped, x, y, z, moveBlendSpeedY, timeBeforeTeleport, finalHeading, targetRadius, p8)","luaInvoke":"Citizen.InvokeNative(0xD76B57B44F1E6F8B, ped, x, y, z, moveBlendSpeedY, timeBeforeTeleport, finalHeading, targetRadius, p8)","js":"TaskGoStraightToCoord(ped, x, y, z, moveBlendSpeedY, timeBeforeTeleport, finalHeading, targetRadius, p8);","jsInvoke":"Citizen.invokeNative('0xD76B57B44F1E6F8B', ped, x + 0.0000001, y + 0.0000001, z + 0.0000001, moveBlendSpeedY + 0.0000001, timeBeforeTeleport, finalHeading + 0.0000001, targetRadius + 0.0000001, p8);","csharp":"Function.Call((Hash)0xD76B57B44F1E6F8B, ped, x, y, z, moveBlendSpeedY, timeBeforeTeleport, finalHeading, targetRadius, p8);","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."]}}