isPedRagdoll
IS_PED_RAGDOLL0x47E4E977581C5B55The 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.
isPedRagdoll(ped: Ped): booleanisPedRagdoll(ped: Ped): booleanUsage
JavaScript
const result = isPedRagdoll(ped);Lua
local result = isPedRagdoll(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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