RedM Natives

SET_PED_CAN_BE_INCAPACITATED

When set on a player ped, its just like when you die in RDO

Hash0x5240864E847C691C
Runtime nameSetPedCanBeIncapacitated
NamespacePED
SideClient
NameOfficial
Docs
Since build1207

Signature

void SET_PED_CAN_BE_INCAPACITATED(Ped ped, BOOL toggle);

Parameters

NameTypeDescription
pedPed—
toggleBOOL—

Returns void

Description

When set on a player ped, its just like when you die in RDO

Usage

Lua
SetPedCanBeIncapacitated(ped, toggle)

-- always works, by hash
Citizen.InvokeNative(0x5240864E847C691C, ped, toggle)
JavaScript and C#
JavaScript
SetPedCanBeIncapacitated(ped, toggle);

// by hash
Citizen.invokeNative('0x5240864E847C691C', ped, toggle);
C#
Function.Call((Hash)0x5240864E847C691C, ped, toggle);

Sources

alloc8or RDR3 NativeDB

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