RedM Natives

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.

Hash0x93C8B64DEB84728C
Runtime nameGetPedSourceOfDeath
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x93C8B64DEB84728C

Signature

Entity GET_PED_SOURCE_OF_DEATH(Ped ped);

Parameters

NameTypeDescription
pedPed—

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

Lua
local retval = GetPedSourceOfDeath(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x93C8B64DEB84728C, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPedSourceOfDeath(ped);

// by hash
const retval = Citizen.invokeNative('0x93C8B64DEB84728C', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x93C8B64DEB84728C, ped);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.