{"hash":"0x535DB43F","ns":"CFX","name":"GET_PED_SOURCE_OF_DAMAGE","slug":"GET_PED_SOURCE_OF_DAMAGE","official":true,"named":true,"luaName":"GetPedSourceOfDamage","game":"cfx","apiset":"server","returnType":"Entity","params":[{"name":"ped","type":"Ped","description":"The target ped"}],"returnsDescription":"The entity id. Returns 0 if the ped has not been damaged recently.","summary":"Get the last entity that damaged the ped.","descriptions":[{"source":"cfx","format":"md","body":"Get the last entity that damaged the ped. This native is used server side when using OneSync."}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_PED_SOURCE_OF_DAMAGE","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_PED_SOURCE_OF_DAMAGE.md","snippets":{"lua":"local retval = GetPedSourceOfDamage(ped)","luaInvoke":"local retval = Citizen.InvokeNative(0x535db43f, ped, Citizen.ResultAsInteger())","js":"const retval = GetPedSourceOfDamage(ped);","jsInvoke":"const retval = Citizen.invokeNative('0x535db43f', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x535db43f, ped);","notes":[]}}