RedM Natives

GET_PED_CAUSE_OF_DEATH

Hash0x63458C27
Runtime nameGetPedCauseOfDeath
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

Hash GET_PED_CAUSE_OF_DEATH(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns Hash

Usage

Lua
local retval = GetPedCauseOfDeath(ped)

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

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

Sources

Cfx.re native reference

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