GET_PED_SOURCE_OF_DEATH
Returns the entity that killed the ped It is best to check if the Ped is dead before asking for its killer.
Hash
0x93C8B64DEB84728CRuntime name
GetPedSourceOfDeathNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x93C8B64DEB84728CSignature
Entity GET_PED_SOURCE_OF_DEATH(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns Entity
Description
Returns the entity that killed the ped
It is best to check if the Ped is dead before asking for its killer.
Usage
local retval = GetPedSourceOfDeath(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x93C8B64DEB84728C, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedSourceOfDeath(ped);
// by hash
const retval = Citizen.invokeNative('0x93C8B64DEB84728C', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x93C8B64DEB84728C, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.