PedClient

setRagdollBlockingFlags

SET_RAGDOLL_BLOCKING_FLAGS0x26695EC767728D84

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

SignatureJavaScript
setRagdollBlockingFlags(ped: Ped, blockingFlag: number): void
SignatureLua
setRagdollBlockingFlags(ped: Ped, blockingFlag: integer)

Usage

JavaScript
setRagdollBlockingFlags(ped, blockingFlag);
Lua
setRagdollBlockingFlags(ped, blockingFlag)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
blockingFlagintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

Works for both player and peds,

Reference

Namespace
Ped PED
In the game
void SET_RAGDOLL_BLOCKING_FLAGS(Ped ped, int blockingFlag)
Hash
0x26695EC767728D84
Formerly
_SET_PED_RAGDOLL_BLOCKING_FLAGS

Open in the interactive natives reference