{"hash":"0x141BC64C8D7C5529","ns":"TASK","name":"_CLEAR_VEHICLE_TASKS","slug":"_CLEAR_VEHICLE_TASKS","official":false,"named":true,"luaName":"ClearVehicleTasks","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"vehicle","type":"Vehicle"}],"summary":"Clears all active tasks assigned to the specified vehicle.","descriptions":[{"source":"alloc8or","format":"text","body":"Clears all active tasks assigned to the specified vehicle.\nThis cancels ongoing behaviors such as TASK_VEHICLE_DRIVE_TO_DESTINATION_2.\nAnd even tasks triggered by horses pulling the vehicle when they start moving due to gunfire etc."},{"source":"vorp","format":"text","body":"Clears all active tasks assigned to the specified vehicle This cancels ongoing behaviors such as TASK_VEHICLE_DRIVE_TO_DESTINATION_2, or even tasks triggered by horses pulling the vehicle when they start moving due to gunfire etc. in the decompiles seems to always be paired with `0xEBA2081E0A5F4D17`"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/_CLEAR_VEHICLE_TASKS","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_CLEAR_VEHICLE_TASKS.md","snippets":{"lua":"ClearVehicleTasks(vehicle)","luaInvoke":"Citizen.InvokeNative(0x141BC64C8D7C5529, vehicle)","js":"ClearVehicleTasks(vehicle);","jsInvoke":"Citizen.invokeNative('0x141BC64C8D7C5529', vehicle);","csharp":"Function.Call((Hash)0x141BC64C8D7C5529, vehicle);","notes":["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."]}}