GET_PED_CAUSE_OF_DEATH
Signature
Hash GET_PED_CAUSE_OF_DEATH(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns Hash
Usage
local retval = GetPedCauseOfDeath(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x63458c27, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedCauseOfDeath(ped);
// by hash
const retval = Citizen.invokeNative('0x63458c27', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x63458c27, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.