RedM Natives

IS_PED_RAGDOLL

Hash0xC833BBE1
Runtime nameIsPedRagdoll
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

bool IS_PED_RAGDOLL(Ped ped);

Parameters

NameTypeDescription
pedPed

The target ped.

Returns bool — Whether or not the ped is ragdolling.

Usage

Lua
local retval = IsPedRagdoll(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0xc833bbe1, ped, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPedRagdoll(ped);

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

Sources

Cfx.re native reference

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