{"hash":"0x1A6E84F13C952094","ns":"PLAYER","name":"_GET_PEDS_IN_COMBAT_WITH_RECENTLY","slug":"_GET_PEDS_IN_COMBAT_WITH_RECENTLY","official":false,"named":true,"luaName":"GetPedsInCombatWithRecently","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"player","type":"Player"},{"name":"recentlyMs","type":"int"},{"name":"outArray","type":"Any*"}],"summary":"Alternate name: _GET_PEDS_DAMAGED_BY_PLAYER Returns an array of peds the player has recently attacked in a combo, tracking up to three consecutive peds.","descriptions":[{"source":"alloc8or","format":"text","body":"Alternate name: _GET_PEDS_DAMAGED_BY_PLAYER\nReturns an array of peds the player has recently attacked in a combo, tracking up to three consecutive peds.\nVideo: https://imgur.com/gallery/0x1a6e84f13c952094-USZqpAJ"},{"source":"vorp","format":"text","body":"it is used to check for that period of time if player damaged any peds only returns the last 3 hits with the entity ids so if you hit the same entity 3 times it will return the same entity id 3 times, if you hit 4 different entities within that time it will return the last 3 entity ids\n only stores the last 3 hits in the data view buffer\nduration is in miliseconds\nyou need dataview"}],"examples":[{"lang":"lua","code":"Citizen.InvokeNative(0x1A6E84F13C952094, PlayerId(), 10000, dataView:Buffer())\nlocal entity = dataView:GetInt32(8 * 1)\nlocal entity2 = dataView:GetInt32(8 * 2)\nlocal entity3 = dataView:GetInt32(8 * 3)\nprint(entity, entity2, entity3)","source":"vorp"}],"aliases":["_GET_PEDS_DAMAGED_BY_PLAYER_RECENTLY"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":3,"url":"https://natives.borderlinerp.com/natives/PLAYER/_GET_PEDS_IN_COMBAT_WITH_RECENTLY","markdownUrl":"https://natives.borderlinerp.com/natives/PLAYER/_GET_PEDS_IN_COMBAT_WITH_RECENTLY.md","snippets":{"lua":"local retval, outArray = GetPedsInCombatWithRecently(player, recentlyMs, outArray)","luaInvoke":"local retval, outArray = Citizen.InvokeNative(0x1A6E84F13C952094, player, recentlyMs, Citizen.PointerValueIntInitialized(outArray), Citizen.ReturnResultAnyway())","js":"const [retval, outArray] = GetPedsInCombatWithRecently(player, recentlyMs, outArray);","jsInvoke":"const [retval, outArray] = Citizen.invokeNative('0x1A6E84F13C952094', player, recentlyMs, Citizen.pointerValueIntInitialized(outArray), Citizen.returnResultAnyway());","csharp":"var outArray = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x1A6E84F13C952094, player, recentlyMs, outArray);\n// outArray.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.","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."]}}