The Lab
PED native

GET_PED_CAUSE_OF_DEATH

returns Hash1 parambuild 1207

Returns the hash of the weapon or cause that killed ped.

Signature

C
Hash GET_PED_CAUSE_OF_DEATH(Ped ped); // 0x16FFE42AB2D2DC59 b1207

Parameters

#NameType
1pedPed

Facts

Facts about GET_PED_CAUSE_OF_DEATH
Name
GET_PED_CAUSE_OF_DEATH
Hash
0x16FFE42AB2D2DC59
Namespace
Returns
Hash
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0x16FFE42AB2D2DC59, -- GET_PED_CAUSE_OF_DEATH
  PlayerPedId(), -- Ped ped
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x16FFE42AB2D2DC59", // GET_PED_CAUSE_OF_DEATH
  PlayerPedId(), // Ped ped
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x16FFE42AB2D2DC59, // GET_PED_CAUSE_OF_DEATH
  API.PlayerPedId() // Ped ped
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.