{"hash":"0xAF72EC7E1B54539B","ns":"ENTITY","name":"_GET_LAST_ENTITY_TO_DAMAGE_ENTITY","slug":"_GET_LAST_ENTITY_TO_DAMAGE_ENTITY","official":false,"named":true,"luaName":"GetLastEntityToDamageEntity","game":"rdr3","apiset":"client","returnType":"Entity","params":[{"name":"entity","type":"Entity"}],"summary":"Returns the last entity that dealt damage to the specified entity.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the last entity that dealt damage to the specified entity.\nReturns 0 if no valid attacker is found."},{"source":"vorp","format":"text","body":"Returns the last entity that dealt any damage to the specified entity.\nThis native appears to retrieve the attacker responsible for the most recent damage event on the given entity."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1311","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/_GET_LAST_ENTITY_TO_DAMAGE_ENTITY","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/_GET_LAST_ENTITY_TO_DAMAGE_ENTITY.md","snippets":{"lua":"local retval = GetLastEntityToDamageEntity(entity)","luaInvoke":"local retval = Citizen.InvokeNative(0xAF72EC7E1B54539B, entity, Citizen.ResultAsInteger())","js":"const retval = GetLastEntityToDamageEntity(entity);","jsInvoke":"const retval = Citizen.invokeNative('0xAF72EC7E1B54539B', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xAF72EC7E1B54539B, entity);","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."]}}