{"hash":"0x7F4563D3","ns":"CFX","name":"GET_PED_SPECIFIC_TASK_TYPE","slug":"GET_PED_SPECIFIC_TASK_TYPE","official":true,"named":true,"luaName":"GetPedSpecificTaskType","game":"cfx","apiset":"server","returnType":"int","params":[{"name":"ped","type":"Ped","description":"The target ped."},{"name":"index","type":"int","description":"A zero-based index with a maximum value of 7."}],"returnsDescription":"The type of the specific task.\r\n1604: A value of 530 denotes no script task is assigned or an invalid input was given.\r\n2060+: A value of 531 denotes no script task is assigned or an invalid input was given.","summary":"Gets the type of a ped's specific task given an index of the CPedTaskSpecificDataNode nodes.","descriptions":[{"source":"cfx","format":"md","body":"Gets the type of a ped's specific task given an index of the CPedTaskSpecificDataNode nodes.\nA ped will typically have a task at index 0, if a ped has multiple tasks at once they will be in the order 0, 1, 2, etc."}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_PED_SPECIFIC_TASK_TYPE","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_PED_SPECIFIC_TASK_TYPE.md","snippets":{"lua":"local retval = GetPedSpecificTaskType(ped, index)","luaInvoke":"local retval = Citizen.InvokeNative(0x7f4563d3, ped, index, Citizen.ResultAsInteger())","js":"const retval = GetPedSpecificTaskType(ped, index);","jsInvoke":"const retval = Citizen.invokeNative('0x7f4563d3', ped, index, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x7f4563d3, ped, index);","notes":[]}}