PedClient

setPedCanRagdoll

SET_PED_CAN_RAGDOLL0xB128377056A54E2A

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

SignatureJavaScript
setPedCanRagdoll(ped: Ped, toggle: boolean): void
SignatureLua
setPedCanRagdoll(ped: Ped, toggle: boolean)

Usage

JavaScript
setPedCanRagdoll(ped, toggle);
Lua
setPedCanRagdoll(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_PED_CAN_RAGDOLL(Ped ped, BOOL toggle)
Hash
0xB128377056A54E2A

Open in the interactive natives reference