PedClient

isPedRagdoll

IS_PED_RAGDOLL0x47E4E977581C5B55

The GTA V native IS_PED_RAGDOLL of the PED namespace, as LS:MP client scripts call it: the global function isPedRagdoll, in JavaScript and in Lua.

SignatureJavaScript
isPedRagdoll(ped: Ped): boolean
SignatureLua
isPedRagdoll(ped: Ped): boolean

Usage

JavaScript
const result = isPedRagdoll(ped);
Lua
local result = isPedRagdoll(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

If the ped handle passed through the parenthesis is in a ragdoll state this will return true.

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_RAGDOLL(Ped ped)
Hash
0x47E4E977581C5B55

Open in the interactive natives reference