{"hash":"0x4E209B2C1EAD5159","ns":"PED","name":"IS_PED_IN_MELEE_COMBAT","slug":"IS_PED_IN_MELEE_COMBAT","official":true,"named":true,"luaName":"IsPedInMeleeCombat","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"}],"summary":"A.) Swinging a random melee attack (including pistol-whipping) B.) Reacting to being hit by a melee attack (including pistol-whipping) C.) Is locked-on to an enemy (arms up, strafing/skipping in the default fighting-stance, ready to dodg…","descriptions":[{"source":"alloc8or","format":"text","body":"Notes: The function only returns true while the ped is: \nA.) Swinging a random melee attack (including pistol-whipping)\n\nB.) Reacting to being hit by a melee attack (including pistol-whipping)\n\nC.) Is locked-on to an enemy (arms up, strafing/skipping in the default fighting-stance, ready to dodge+counter). \n\nYou don't have to be holding the melee-targeting button to be in this stance; you stay in it by default for a few seconds after swinging at someone. If you do a sprinting punch, it returns true for the duration of the punch animation and then returns false again, even if you've punched and made-angry many peds"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x4E209B2C1EAD5159","gtaJhash":"0xFD7814A5","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/IS_PED_IN_MELEE_COMBAT","markdownUrl":"https://natives.borderlinerp.com/natives/PED/IS_PED_IN_MELEE_COMBAT.md","snippets":{"lua":"local retval = IsPedInMeleeCombat(ped)","luaInvoke":"local retval = Citizen.InvokeNative(0x4E209B2C1EAD5159, ped, Citizen.ReturnResultAnyway())","js":"const retval = IsPedInMeleeCombat(ped);","jsInvoke":"const retval = Citizen.invokeNative('0x4E209B2C1EAD5159', ped, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x4E209B2C1EAD5159, ped);","notes":[]}}