{"hash":"0x3FFCD7BBA074CC80","ns":"TASK","name":"_UPDATE_TASK_GO_TO_COORD_WITH_OFFSET","slug":"_UPDATE_TASK_GO_TO_COORD_WITH_OFFSET","official":false,"named":true,"luaName":"UpdateTaskGoToCoordWithOffset","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"targetX","type":"float"},{"name":"targetY","type":"float"},{"name":"targetZ","type":"float"},{"name":"offsetX","type":"float"},{"name":"offsetY","type":"float"},{"name":"offsetZ","type":"float"},{"name":"speed","type":"float"},{"name":"tolerance","type":"float"}],"summary":"In-place update for a running follow-to-offset/go-to task: sets new target coords + local offset, with speed and arrival tolerance (foot or mount; no effect if no compatible task).","descriptions":[{"source":"alloc8or","format":"text","body":"In-place update for a running follow-to-offset/go-to task: sets new target coords + local offset, with speed and arrival tolerance (foot or mount; no effect if no compatible task)."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/_UPDATE_TASK_GO_TO_COORD_WITH_OFFSET","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_UPDATE_TASK_GO_TO_COORD_WITH_OFFSET.md","snippets":{"lua":"UpdateTaskGoToCoordWithOffset(ped, targetX, targetY, targetZ, offsetX, offsetY, offsetZ, speed, tolerance)","luaInvoke":"Citizen.InvokeNative(0x3FFCD7BBA074CC80, ped, targetX, targetY, targetZ, offsetX, offsetY, offsetZ, speed, tolerance)","js":"UpdateTaskGoToCoordWithOffset(ped, targetX, targetY, targetZ, offsetX, offsetY, offsetZ, speed, tolerance);","jsInvoke":"Citizen.invokeNative('0x3FFCD7BBA074CC80', ped, targetX + 0.0000001, targetY + 0.0000001, targetZ + 0.0000001, offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001, speed + 0.0000001, tolerance + 0.0000001);","csharp":"Function.Call((Hash)0x3FFCD7BBA074CC80, ped, targetX, targetY, targetZ, offsetX, offsetY, offsetZ, speed, tolerance);","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."]}}