PedClient

canPedRagdoll

CAN_PED_RAGDOLL0x128F79EDCECE4FD5

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

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

Usage

JavaScript
const result = canPedRagdoll(ped);
Lua
local result = canPedRagdoll(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.

Prevents the ped from going limp.

[Example: Can prevent peds from falling when standing on moving vehicles.]

Reference

Namespace
Ped PED
In the game
BOOL CAN_PED_RAGDOLL(Ped ped)
Hash
0x128F79EDCECE4FD5

Open in the interactive natives reference