GET_PED_CAUSE_OF_DEATH
Returns the hash of the weapon/model/object that killed the ped.
Hash
0x16FFE42AB2D2DC59Runtime name
GetPedCauseOfDeathNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x16FFE42AB2D2DC59Signature
Hash GET_PED_CAUSE_OF_DEATH(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns Hash
Description
Returns the hash of the weapon/model/object that killed the ped.
Usage
local retval = GetPedCauseOfDeath(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x16FFE42AB2D2DC59, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedCauseOfDeath(ped);
// by hash
const retval = Citizen.invokeNative('0x16FFE42AB2D2DC59', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x16FFE42AB2D2DC59, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.