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