{"hash":"0x304AE42E357B8C7E","ns":"TASK","name":"TASK_FOLLOW_TO_OFFSET_OF_ENTITY","slug":"TASK_FOLLOW_TO_OFFSET_OF_ENTITY","official":true,"named":true,"luaName":"TaskFollowToOffsetOfEntity","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"entity","type":"Entity"},{"name":"offsetX","type":"float"},{"name":"offsetY","type":"float"},{"name":"offsetZ","type":"float"},{"name":"movementSpeed","type":"float"},{"name":"timeout","type":"int"},{"name":"stoppingRange","type":"float"},{"name":"persistFollowing","type":"BOOL"},{"name":"p9","type":"BOOL"},{"name":"walkOnly","type":"BOOL"},{"name":"p11","type":"BOOL"},{"name":"p12","type":"BOOL"},{"name":"p13","type":"BOOL"}],"summary":"","descriptions":[{"source":"femga","format":"pre","body":"0x304AE42E357B8C7E  (by Jonaskii)\n\nTASK_FOLLOW_TO_OFFSET_OF_ENTITY(Ped follower, Ped target, float offsetX, float offsetY, float offsetZ, float var1, float var2, float minDist, BOOL b1, BOOL b2, BOOL walkOnly, BOOL b3, BOOL b4)\n\nfollower - The ped you want to follow somebody\ntarget - The ped you want the follow to follow\noffsetX,Y,Z - Offset from target the follower will stand\nminDist - Minimum distance the follower can be from the target (-1 for auto, 50f is max)\nwalkOnly - if true the follower can only walk\n\nvar1: found in scripts (-1, 1f, 1.2f, 2f, 2.5f )\nvar2: found in scripts (-1, 1.0)\nUnsure what they both do, I cannot seem to find any difference when raising and lowering them. Maybe you need to have one of the Booleans active for them to take effect?"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x304AE42E357B8C7E","gtaJhash":"0x2DF5A6AC","sources":["alloc8or","femga"],"doc":1,"url":"https://natives.borderlinerp.com/natives/TASK/TASK_FOLLOW_TO_OFFSET_OF_ENTITY","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/TASK_FOLLOW_TO_OFFSET_OF_ENTITY.md","snippets":{"lua":"TaskFollowToOffsetOfEntity(ped, entity, offsetX, offsetY, offsetZ, movementSpeed, timeout, stoppingRange, persistFollowing, p9, walkOnly, p11, p12, p13)","luaInvoke":"Citizen.InvokeNative(0x304AE42E357B8C7E, ped, entity, offsetX, offsetY, offsetZ, movementSpeed, timeout, stoppingRange, persistFollowing, p9, walkOnly, p11, p12, p13)","js":"TaskFollowToOffsetOfEntity(ped, entity, offsetX, offsetY, offsetZ, movementSpeed, timeout, stoppingRange, persistFollowing, p9, walkOnly, p11, p12, p13);","jsInvoke":"Citizen.invokeNative('0x304AE42E357B8C7E', ped, entity, offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001, movementSpeed + 0.0000001, timeout, stoppingRange + 0.0000001, persistFollowing, p9, walkOnly, p11, p12, p13);","csharp":"Function.Call((Hash)0x304AE42E357B8C7E, ped, entity, offsetX, offsetY, offsetZ, movementSpeed, timeout, stoppingRange, persistFollowing, p9, walkOnly, p11, p12, p13);","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."]}}