{"hash":"0x9FF5F9B24E870748","ns":"TASK","name":"_HAS_PED_DIRECTED_TASK_ACTIVE","slug":"_HAS_PED_DIRECTED_TASK_ACTIVE","official":false,"named":true,"luaName":"HasPedDirectedTaskActive","game":"rdr3","apiset":"client","returnType":"Any","params":[{"name":"p0","type":"Any"}],"summary":"Returns true if the given entity currently has an active directed task that is, a task with a specific external objective (coordinate, entity, vehicle, or combat target) Known to return true for: TaskGoToCoordAnyMeans(ped, ...) TaskGoToE…","descriptions":[{"source":"vorp","format":"text","body":"Returns true if the given entity currently has an active directed task that is, a task with a specific external objective (coordinate, entity, vehicle, or combat target)\nKnown to return true for:\nTaskGoToCoordAnyMeans(ped, ...)\nTaskGoToEntity(ped, target, ...)\nTaskCombatPed(ped, targetPed, ...)\nTaskWarpPedIntoVehicle(ped, vehicle)"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/_HAS_PED_DIRECTED_TASK_ACTIVE","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_HAS_PED_DIRECTED_TASK_ACTIVE.md","snippets":{"lua":"local retval = HasPedDirectedTaskActive(p0)","luaInvoke":"local retval = Citizen.InvokeNative(0x9FF5F9B24E870748, p0, Citizen.ResultAsInteger())","js":"const retval = HasPedDirectedTaskActive(p0);","jsInvoke":"const retval = Citizen.invokeNative('0x9FF5F9B24E870748', p0, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x9FF5F9B24E870748, p0);","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."]}}