{"hash":"0x92DB0739813C5186","ns":"TASK","name":"TASK_MOUNT_ANIMAL","slug":"TASK_MOUNT_ANIMAL","official":true,"named":true,"luaName":"TaskMountAnimal","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"mount","type":"Ped"},{"name":"timer","type":"int"},{"name":"seatIndex","type":"int"},{"name":"pedSpeed","type":"float"},{"name":"mountStyle","type":"int"},{"name":"p6","type":"Any"},{"name":"p7","type":"Any"}],"summary":"Flags will still apply to mountStyle","descriptions":[{"source":"alloc8or","format":"text","body":"timer: in ms, if it reaches 0 it will auto warp the ped on the horse\nmountStyle: See TASK_ENTER_VEHICLE\nFlags will still apply to mountStyle"},{"source":"femga","format":"pre","body":"// 0x92DB0739813C5186    (By Maniac)\nTASK_MOUNT_ANIMAL(Ped ped, Ped mount, int timer, int position, float ped_speed, int mount_style, float unk1, float unk2)\n\nmount_styles enum {\n     normal = 1,\n     backfirst = 8,\n     warptohorse = 16,\n }\n\n// timer: Timer in ms, if it reaches 0 it will auto warp the ped to the horse\n// position: -1: main seat on horse, 0: back of horse\n// ped_speed: How fast the ped will go\n// mount_style: changes the way the ped gets on the horse (1, 8, 131072, 73, 1025, 16, 64, 513)\n\n// Tried lots of variables for unk1 & unk2, nothing changed. All instances of this Method ended with 0, 0 from what I saw."}],"examples":[],"aliases":[],"enums":["eEnterExitVehicleFlags"],"related":[],"build":"1207","sources":["alloc8or","femga"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/TASK_MOUNT_ANIMAL","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/TASK_MOUNT_ANIMAL.md","snippets":{"lua":"TaskMountAnimal(ped, mount, timer, seatIndex, pedSpeed, mountStyle, p6, p7)","luaInvoke":"Citizen.InvokeNative(0x92DB0739813C5186, ped, mount, timer, seatIndex, pedSpeed, mountStyle, p6, p7)","js":"TaskMountAnimal(ped, mount, timer, seatIndex, pedSpeed, mountStyle, p6, p7);","jsInvoke":"Citizen.invokeNative('0x92DB0739813C5186', ped, mount, timer, seatIndex, pedSpeed + 0.0000001, mountStyle, p6, p7);","csharp":"Function.Call((Hash)0x92DB0739813C5186, ped, mount, timer, seatIndex, pedSpeed, mountStyle, p6, p7);","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."]}}